From c7b69931f340a148c01e5a114155a49920116cd9 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Fri, 30 May 2025 18:00:16 +0200 Subject: [PATCH] fix: clear opcache after app extraction clear opcache post app update extraction to prevent outdated files issues. opcache.validate_timestamps=0 disables automated file modification checks. Signed-off-by: Daniel Kesselberg --- lib/private/Installer.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/private/Installer.php b/lib/private/Installer.php index f32b0e5919a2a..60896ec429da1 100644 --- a/lib/private/Installer.php +++ b/lib/private/Installer.php @@ -341,6 +341,9 @@ public function downloadApp(string $appId, bool $allowUnstable = false): void { // otherwise we just copy the outer directory $this->copyRecursive($extractDir, $baseDir); Files::rmdirr($extractDir); + if (function_exists('opcache_reset')) { + opcache_reset(); + } return; } // Signature does not match