mirror of
https://github.com/webmin/webmin.git
synced 2026-08-02 22:40:32 +01:00
Fix to avoid site cache writes in cron context
https://github.com/virtualmin/virtualmin-gpl/issues/1221
This commit is contained in:
@@ -43,7 +43,11 @@ if ($oldsite{'size'} != $st[7] ||
|
||||
}
|
||||
}
|
||||
}
|
||||
&refresh_site_cache();
|
||||
|
||||
# Avoid cache writes from non-interactive commands on systemd systems
|
||||
unless ($main::webmin_script_type eq 'cron' && -d '/run/systemd/system') {
|
||||
&refresh_site_cache();
|
||||
}
|
||||
|
||||
# Load the site-specific information on the server executable
|
||||
&read_file("$module_config_directory/site", \%site);
|
||||
|
||||
Reference in New Issue
Block a user