Move Cache::clear() to DI::cache()->clear()
This commit is contained in:
parent
f7ca437ba6
commit
182f390520
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -154,7 +154,7 @@ class CronJobs
|
|||
}
|
||||
|
||||
// clear old cache
|
||||
Cache::clear();
|
||||
DI::cache()->clear();
|
||||
|
||||
// clear old item cache files
|
||||
clear_cache();
|
||||
|
|
Loading…
Reference in New Issue
Block a user