Browse Source

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 7 năm trước cách đây
mục cha
commit
cab14b1654
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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);
 		}
 	}