[*] MO: Add smarty cache on some modules

This commit is contained in:
Rémi Gaillard
2013-01-07 17:09:36 +01:00
parent 8bd07c5b87
commit e1664bbdfb
14 changed files with 136 additions and 95 deletions
@@ -93,11 +93,12 @@ class Blockmyaccountfooter extends Module
{
global $smarty;
$smarty->assign(array(
'voucherAllowed' => CartRule::isFeatureActive(),
'returnAllowed' => (int)(Configuration::get('PS_ORDER_RETURN')),
'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('displayMyAccountBlock')
));
return $this->display(__FILE__, $this->name.'.tpl');
if (!$this->isCached('blockmyaccountfooter.tpl', $this->getCacheId()))
$smarty->assign(array(
'voucherAllowed' => CartRule::isFeatureActive(),
'returnAllowed' => (int)(Configuration::get('PS_ORDER_RETURN')),
'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('displayMyAccountBlock')
));
return $this->display(__FILE__, 'blockmyaccountfooter.tpl', $this->getCacheId());
}
}