Ver Fonte

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 há 8 anos atrás
pai
commit
15c08be111
1 ficheiros alterados com 1 adições e 1 exclusões
  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());