diff --git a/core/CacheFile.php b/core/CacheFile.php
index 4666ee69a142c7b5f0acdb9f27cde19a0b428d1d..9ae391bd77b62a5a9ffdd8f3771eea944ef77639 100644
--- a/core/CacheFile.php
+++ b/core/CacheFile.php
@@ -143,6 +143,9 @@ class CacheFile
                     @unlink($tmp_filename);
                 }
             }
+
+            $this->opCacheInvalidate($id);
+
             return true;
         }
         return false;
@@ -164,6 +167,7 @@ class CacheFile
         $filename = $this->cachePath . $id . '.php';
         if (file_exists($filename)) {
             @unlink($filename);
+            $this->opCacheInvalidate($filename);
             return true;
         }
         return false;
@@ -176,4 +180,11 @@ class CacheFile
     {
         Filesystem::unlinkRecursive($this->cachePath, $deleteRootToo = false);
     }
-}
+
+    private function opCacheInvalidate($filepath)
+    {
+        if (function_exists('opcache_invalidate')) {
+            opcache_invalidate($filepath);
+        }
+    }
+}
\ No newline at end of file