From d004e0411e3f88a5508ed600b2cf6a7e7fc11a78 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Tue, 24 Sep 2013 08:17:46 +0200 Subject: [PATCH] remove smarty cache --- core/lib/Thelia/Core/Template/Smarty/SmartyParser.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php b/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php index d76dd8dfa..f0cb6d8d4 100755 --- a/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php +++ b/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php @@ -70,14 +70,8 @@ class SmartyParser extends Smarty implements ParserInterface $this->error_reporting = E_ALL ^ E_NOTICE; // Si on n'est pas en mode debug, activer le cache, avec une lifetime de 15mn, et en vérifiant que les templates sources n'ont pas été modifiés. - if ($debug === false) { - $this->caching = Smarty::CACHING_LIFETIME_CURRENT; - $this->cache_lifetime = 300; - $this->compile_check = true; - } else { - $this->caching = Smarty::CACHING_OFF; - $this->force_compile = true; - } + $this->caching = Smarty::CACHING_OFF; + $this->force_compile = true; // The default HTTP status $this->status = 200;