Browse Source

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4709 a333f486-631f-4898-b8df-5754b55c2be0
glajarige 8 years ago
parent
commit
15c08be111
1 changed files with 1 additions and 1 deletions
  1. 1 1
      datamodels/2.x/itop-portal-base/portal/web/index.php

+ 1 - 1
datamodels/2.x/itop-portal-base/portal/web/index.php

@@ -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());