]> git.mxchange.org Git - friendica.git/commitdiff
Add missing "outdated" parameter to ICacheDriver->clear in Core\Cache
authorHypolite Petovan <mrpetovan@gmail.com>
Wed, 26 Sep 2018 02:46:45 +0000 (22:46 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Wed, 26 Sep 2018 02:46:45 +0000 (22:46 -0400)
src/Core/Cache.php

index cc77d9bfd0dc7e35598130af672287454ffdd25c..81eacc80ff129d178af500d8a83b6d61bd0b2cb9 100644 (file)
@@ -107,12 +107,12 @@ class Cache extends \Friendica\BaseObject
        /**
         * @brief Remove outdated data from the cache
         *
-        * @param integer $max_level The maximum cache level that is to be cleared
+        * @param boolean $outdated just remove outdated values
         *
         * @return void
         */
-       public static function clear()
+       public static function clear($outdated = true)
        {
-               return self::getDriver()->clear();
+               return self::getDriver()->clear($outdated);
        }
 }