aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2025-05-30 18:00:16 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2025-05-30 18:12:15 +0200
commitc7b69931f340a148c01e5a114155a49920116cd9 (patch)
tree460889f234dfa6b2e1028e97f53012a0eadb51e0
parent35930a4331150d231be30fe05269ecfbd92d1f8d (diff)
downloadnextcloud-server-bug/52977/opcache-reset-after-app-extract.tar.gz
nextcloud-server-bug/52977/opcache-reset-after-app-extract.zip
fix: clear opcache after app extractionbug/52977/opcache-reset-after-app-extract
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 <mail@danielkesselberg.de>
-rw-r--r--lib/private/Installer.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Installer.php b/lib/private/Installer.php
index f32b0e5919a..60896ec429d 100644
--- a/lib/private/Installer.php
+++ b/lib/private/Installer.php
@@ -341,6 +341,9 @@ class Installer {
// 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