mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Refactor Cache services
This commit is contained in:
@@ -311,10 +311,9 @@ class appbox extends base
|
|||||||
* Step 1
|
* Step 1
|
||||||
*/
|
*/
|
||||||
$upgrader->set_current_message(_('Flushing cache'));
|
$upgrader->set_current_message(_('Flushing cache'));
|
||||||
if ($this->get_cache()->ping())
|
|
||||||
{
|
$this->Core['CacheService']->flushAll();
|
||||||
$this->get_cache()->flush();
|
|
||||||
}
|
|
||||||
$upgrader->add_steps_complete(1);
|
$upgrader->add_steps_complete(1);
|
||||||
|
|
||||||
|
|
||||||
@@ -386,10 +385,9 @@ class appbox extends base
|
|||||||
* Step 9
|
* Step 9
|
||||||
*/
|
*/
|
||||||
$upgrader->set_current_message(_('Flushing cache'));
|
$upgrader->set_current_message(_('Flushing cache'));
|
||||||
if ($this->get_cache()->ping())
|
|
||||||
{
|
$this->Core['CacheService']->flushAll();
|
||||||
$this->get_cache()->flush();
|
|
||||||
}
|
|
||||||
$upgrader->add_steps_complete(1);
|
$upgrader->add_steps_complete(1);
|
||||||
|
|
||||||
return $advices;
|
return $advices;
|
||||||
|
Reference in New Issue
Block a user