mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
No need to call conf_mount_rw() when generating config.cache, it is on /tmp
This commit is contained in:
parent
6e4288f134
commit
e18e4ed49f
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user