From 182f390520f3eda0207c2d74fd098ae1f2b0086d Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Tue, 7 Jan 2020 00:35:03 +0100 Subject: [PATCH] Move Cache::clear() to DI::cache()->clear() --- src/Core/Cache.php | 13 ------------- src/Worker/CronJobs.php | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) 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(); -- 2.39.5