[*] BO : Add clear smarty cache button

This commit is contained in:
gRoussac
2013-08-13 15:11:00 +02:00
parent b1b636a911
commit e8685b1430
4 changed files with 23 additions and 13 deletions
@@ -791,6 +791,13 @@ class AdminPerformanceControllerCore extends AdminController
else
$this->errors[] = Tools::displayError('You do not have permission to edit this.');
}
if ((bool)Tools::getValue('empty_smarty_cache'))
{
$redirectAdmin = true;
Tools::clearSmartyCache();
}
if ($redirectAdmin && (!isset($this->errors) || !count($this->errors)))
{
Hook::exec('action'.get_class($this).ucfirst($this->action).'After', array('controller' => $this, 'return' => ''));