settings cache

This commit is contained in:
2026-03-13 14:38:58 +01:00
parent 04995e3712
commit add5cca222
3 changed files with 21 additions and 8 deletions

View File

@@ -69,7 +69,7 @@ class SettingCacheService
}
// PHP include returns an array — loaded by OPcache on subsequent requests, much faster than DB.
$payload = "<?php\nreturn " . $this->exportValue($settings) . ";\n";
$payload = "<?php\n\nreturn " . $this->exportValue($settings) . ";\n";
$written = @file_put_contents($tmp, $payload, LOCK_EX);
if ($written === false) {
@unlink($tmp);