invalidate opcache on dire removal

This commit is contained in:
Yuri Kuznetsov
2024-01-02 13:28:18 +02:00
parent 5ca69b9cbb
commit 360765a94a
@@ -804,6 +804,7 @@ class Manager
$result = true;
// @todo Remove the if statement.
if (is_array($fileList)) {
foreach ($fileList as $file) {
$fullPath = Util::concatPath($path, $file);
@@ -812,6 +813,8 @@ class Manager
$result &= $this->removeInDir($fullPath, true);
}
else if (file_exists($fullPath)) {
$this->opcacheInvalidate($fullPath, true);
$result &= unlink($fullPath);
}
}