From: nupplaPhil Date: Mon, 6 Jan 2020 23:35:03 +0000 (+0100) Subject: Move Cache::clear() to DI::cache()->clear() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=182f390520f3eda0207c2d74fd098ae1f2b0086d;p=friendica.git Move Cache::clear() to DI::cache()->clear() --- diff --git a/src/Core/Cache.php b/src/Core/Cache.php index 15e5deba26..3e8a3f0047 100644 --- a/src/Core/Cache.php +++ b/src/Core/Cache.php @@ -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); - } } diff --git a/src/Worker/CronJobs.php b/src/Worker/CronJobs.php index 6267bf6f33..e88949e657 100644 --- a/src/Worker/CronJobs.php +++ b/src/Worker/CronJobs.php @@ -154,7 +154,7 @@ class CronJobs } // clear old cache - Cache::clear(); + DI::cache()->clear(); // clear old item cache files clear_cache();