// Clear smarty cache on entities updates

This commit is contained in:
rGaillard
2012-05-29 10:33:53 +00:00
parent 00603a1825
commit e3cf7f8b35
3 changed files with 85 additions and 6 deletions

View File

@@ -1545,9 +1545,11 @@ abstract class ModuleCore
return $context->smarty->isCached($this->_getApplicableTemplateDir($template).$template, $cacheId, $compileId);
}
protected function _clearCache($template, $cacheId = null, $compileId = null)
protected function _clearCache($template, $cache_id = null, $compile_id = null)
{
Tools::clearCache(Context::getContext()->smarty);
Tools::enableCache();
Tools::clearCache(Context::getContext()->smarty, $template, $cache_id, $compile_id);
Tools::restoreCacheSettings();
}
protected function _generateConfigXml()