From 43a9fd4b1f66da1d0f47b999dff3feac66f349a0 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 00fdd84c1bc83..5300a485d80f8 100644 --- a/lib/private/Installer.php +++ b/lib/private/Installer.php @@ -332,6 +332,9 @@ public function downloadApp(string $appId, bool $allowUnstable = false): void { } OC_Helper::copyr($extractDir, $baseDir); OC_Helper::rmdirr($extractDir); + if (function_exists('opcache_reset')) { + opcache_reset(); + } return; } // Signature does not match