Move Cache::clear() to DI::cache()->clear()

This commit is contained in:
nupplaPhil 2020-01-07 00:35:03 +01:00
parent f7ca437ba6
commit 182f390520
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90
2 changed files with 1 additions and 14 deletions

View 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);
}
}

View File

@ -154,7 +154,7 @@ class CronJobs
}
// clear old cache
Cache::clear();
DI::cache()->clear();
// clear old item cache files
clear_cache();