]> git.mxchange.org Git - friendica.git/commitdiff
Move Cache::clear() to DI::cache()->clear()
authornupplaPhil <admin@philipp.info>
Mon, 6 Jan 2020 23:35:03 +0000 (00:35 +0100)
committernupplaPhil <admin@philipp.info>
Mon, 6 Jan 2020 23:36:07 +0000 (00:36 +0100)
src/Core/Cache.php
src/Worker/CronJobs.php

index 15e5deba26a7023422bafacbeb0b4de471744c4d..3e8a3f00475656a6c560e32a8cc1d5398cf11f53 100644 (file)
@@ -73,17 +73,4 @@ class Cache
        {
                return DI::cache()->delete($key);
        }
-
-       /**
-        * @brief Remove outdated data from the cache
-        *
-        * @param boolean $outdated just remove outdated values
-        *
-        * @return bool
-        * @throws \Exception
-        */
-       public static function clear($outdated = true)
-       {
-               return DI::cache()->clear($outdated);
-       }
 }
index 6267bf6f330b70ca8d8f25a22fcdac9621447e83..e88949e657032b35ea97f8ac5c2df3848f4802bd 100644 (file)
@@ -154,7 +154,7 @@ class CronJobs
                }
 
                // clear old cache
-               Cache::clear();
+               DI::cache()->clear();
 
                // clear old item cache files
                clear_cache();