From 0e418f20cc39b791398e3a08de4b0f982f73b65d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Fri, 5 Apr 2013 11:44:16 +0200 Subject: [PATCH] [*] FO: use subdirectory per template for smarty cache --- config/smarty.config.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/smarty.config.inc.php b/config/smarty.config.inc.php index f45ce627d..128900a6d 100644 --- a/config/smarty.config.inc.php +++ b/config/smarty.config.inc.php @@ -32,6 +32,8 @@ global $smarty; $smarty = new Smarty(); $smarty->setCompileDir(_PS_CACHE_DIR_.'smarty/compile'); $smarty->setCacheDir(_PS_CACHE_DIR_.'smarty/cache'); +if (!Tools::getSafeModeStatus()) + $smarty->use_sub_dirs = true; $smarty->setConfigDir(_PS_SMARTY_DIR_.'configs'); $smarty->caching = false; $smarty->force_compile = (Configuration::get('PS_SMARTY_FORCE_COMPILE') == _PS_SMARTY_FORCE_COMPILE_) ? true : false;