Refactor Cache services

This commit is contained in:
Romain Neutron
2012-02-21 16:51:33 +01:00
parent b91fc5e9b2
commit 5e8f21b65b

View File

@@ -311,10 +311,9 @@ class appbox extends base
* Step 1
*/
$upgrader->set_current_message(_('Flushing cache'));
if ($this->get_cache()->ping())
{
$this->get_cache()->flush();
}
$this->Core['CacheService']->flushAll();
$upgrader->add_steps_complete(1);
@@ -386,10 +385,9 @@ class appbox extends base
* Step 9
*/
$upgrader->set_current_message(_('Flushing cache'));
if ($this->get_cache()->ping())
{
$this->get_cache()->flush();
}
$this->Core['CacheService']->flushAll();
$upgrader->add_steps_complete(1);
return $advices;