No need to call conf_mount_rw() when generating config.cache, it is on /tmp

This commit is contained in:
Scott Ullrich 2009-06-25 14:16:02 -04:00
parent 6e4288f134
commit e18e4ed49f

View File

@ -306,12 +306,9 @@ function parse_config($parse = false) {
function generate_config_cache($config) {
global $g;
config_lock();
conf_mount_rw();
$configcache = fopen($g['tmp_path'] . '/config.cache', "w");
fwrite($configcache, serialize($config));
fclose($configcache);
mwexec("sync");
conf_mount_ro();
config_unlock();
return true;
}