소스 검색

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 년 전
부모
커밋
15c08be111
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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());