diff --git a/classes/controller/Controller.php b/classes/controller/Controller.php index cf18b2076..d6b80e5e3 100644 --- a/classes/controller/Controller.php +++ b/classes/controller/Controller.php @@ -359,6 +359,9 @@ abstract class ControllerCore protected function isCached($template, $cacheId = null, $compileId = null) { - return $this->context->smarty->isCached($template, $cacheId, $compileId); + Tools::enableCache(); + $res = $this->context->smarty->isCached($template, $cacheId, $compileId); + Tools::restoreCacheSettings(); + return $res; } }