Explorar el Código

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 hace 8 años
padre
commit
15c08be111
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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());