diff --git a/src/Core/Cache.php b/src/Core/Cache.php index 15e5deba2..3e8a3f004 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 6267bf6f3..e88949e65 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();