Explorar o código

Code robustness: Though the commit [4922] solves the issue N.1052, it is safer to reset the cache as part of the "Commit" performed during the installation process.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4923 a333f486-631f-4898-b8df-5754b55c2be0
romainq %!s(int64=7) %!d(string=hai) anos
pai
achega
cab14b1654
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      setup/runtimeenv.class.inc.php

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

@@ -958,6 +958,8 @@ class RunTimeEnvironment
 			$this->CommitFile($sTargetConfig, $sFinalConfig);
 			@chmod($sFinalConfig, 0440); // Read-only for owner and group, nothing for others
 			@rmdir(dirname($sTargetConfig)); // Cleanup the temporary build dir if empty
+
+			MetaModel::ResetCache(md5(APPROOT).'-'.$this->sFinalEnv);
 		}
 	}