]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Cache/ArrayCache.php
Merge pull request #5762 from JonnyTischbein/2018.08-rc
[friendica.git] / src / Core / Cache / ArrayCache.php
index ec9f3a2577fda4e0691c67b1452691ad75d25a8b..d1302c1d6ec327d5f04a0a570b58c4da747954b5 100644 (file)
@@ -51,8 +51,13 @@ class ArrayCache extends AbstractCacheDriver implements IMemoryCacheDriver
        /**
         * (@inheritdoc)
         */
-       public function clear()
+       public function clear($outdated = true)
        {
+               // Array doesn't support TTL so just don't delete something
+               if ($outdated) {
+                       return true;
+               }
+
                $this->cachedData = [];
                return true;
        }