Skip to content

Commit c7b6993

Browse files
committed
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 <mail@danielkesselberg.de>
1 parent 35930a4 commit c7b6993

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/private/Installer.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,9 @@ public function downloadApp(string $appId, bool $allowUnstable = false): void {
341341
// otherwise we just copy the outer directory
342342
$this->copyRecursive($extractDir, $baseDir);
343343
Files::rmdirr($extractDir);
344+
if (function_exists('opcache_reset')) {
345+
opcache_reset();
346+
}
344347
return;
345348
}
346349
// Signature does not match

0 commit comments

Comments
 (0)