Skip to content
Snippets Groups Projects
Commit b2f69297 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo Committed by GitHub
Browse files

Merge pull request #657 from seggen-ibuildings/feature/invalidate-opcache

Invalidate opcache after writing a file
parents 20da7652 cd8179d7
No related branches found
No related tags found
No related merge requests found
...@@ -203,5 +203,9 @@ class System ...@@ -203,5 +203,9 @@ class System
'Error moving "'.$tmpFile.'" to "'.$filename.'": '.$error['message'] 'Error moving "'.$tmpFile.'" to "'.$filename.'": '.$error['message']
); );
} }
if (function_exists('opcache_invalidate')) {
opcache_invalidate($filename);
}
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment