Portal: Twig cache is now disabled when debug option is activated

SVN:trunk[4709]
This commit is contained in:
Guillaume Lajarige
2017-04-27 13:30:54 +00:00
parent b23b468c0f
commit ba9c6bd8b3

View File

@@ -66,7 +66,7 @@ $oApp->register(new Combodo\iTop\Portal\Provider\ScopeValidatorServiceProvider()
$oApp->register(new Silex\Provider\TwigServiceProvider(), array(
'twig.path' => MODULESROOT,
'twig.options' => array(
'cache' => utils::GetCachePath() . 'twig/'
'cache' => ($bDebug) ? false : utils::GetCachePath() . 'twig/',
)
));
$oApp->register(new Silex\Provider\HttpFragmentServiceProvider());