Fix to avoid site cache writes in cron context
Some checks are pending
Tests / prove (push) Waiting to run
Package and upload artifacts / build (push) Waiting to run

https://github.com/virtualmin/virtualmin-gpl/issues/1221
This commit is contained in:
Ilia Ross
2026-08-02 23:05:58 +02:00
parent 0273211470
commit 26e369dccc

View File

@@ -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);