From e18e4ed49ffb1c4d7d5fbcb97d2b96c6ee2c5e68 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 25 Jun 2009 14:16:02 -0400 Subject: No need to call conf_mount_rw() when generating config.cache, it is on /tmp --- etc/inc/config.inc | 3 --- 1 file changed, 3 deletions(-) (limited to 'etc/inc/config.inc') diff --git a/etc/inc/config.inc b/etc/inc/config.inc index 485c09b..ff2c04d 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -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; } -- cgit v1.1