[-] MO: Fix time of smarty cache invalidation

This commit is contained in:
Rémi Gaillard
2013-09-20 11:33:30 +02:00
parent 4f639329e9
commit 5b7580d487

View File

@@ -1727,6 +1727,8 @@ abstract class ModuleCore
protected function _clearCache($template, $cache_id = null, $compile_id = null)
{
Tools::enableCache();
if ($cache_id === null)
$cache_id = Module::getCacheId($this->name);
Tools::clearCache(Context::getContext()->smarty, $this->getTemplatePath($template), $cache_id, $compile_id);
Tools::restoreCacheSettings();
}