diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2025-05-30 18:00:16 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2025-05-30 18:12:15 +0200 |
commit | c7b69931f340a148c01e5a114155a49920116cd9 (patch) | |
tree | 460889f234dfa6b2e1028e97f53012a0eadb51e0 | |
parent | 35930a4331150d231be30fe05269ecfbd92d1f8d (diff) | |
download | nextcloud-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.php | 3 |
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 |