Browse Source

Proper reset of APC cache upon compilation !

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2715 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 years ago
parent
commit
a8556622dd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      setup/runtimeenv.class.inc.php

+ 2 - 2
setup/runtimeenv.class.inc.php

@@ -84,7 +84,7 @@ class RunTimeEnvironment
 		if (!$bUseCache)
 		{
 			// Reset the cache for the first use !
-			MetaModel::ResetCache($this->sTargetEnv);
+			MetaModel::ResetCache(md5(APPROOT).'-'.$this->sTargetEnv);
 		}
 	
 		MetaModel::Startup($oConfig, $bModelOnly, $bUseCache);
@@ -355,7 +355,7 @@ class RunTimeEnvironment
 			$oMFCompiler->Compile($sTargetDir, null, $bUseSymLinks);
 			
 			require_once(APPROOT.'/core/dict.class.inc.php');
-			MetaModel::ResetCache($this->sTargetEnv);
+			MetaModel::ResetCache(md5(APPROOT).'-'.$this->sTargetEnv);
 		}
 	}