[DOC-CVS] [doc-en] master: Fix incorrect claim that opcache_invalidate() skips the file cache (#5723)
[email protected] (Gabriel Cordeiro Barroso Teles via GitHub) Fri, 31 Jul 2026 11:11:06 +0000
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Gabriel Cordeiro Barroso Teles (GabrielCordeiroBarrosoTeles)
Committer: GitHub (web-flow)
Pusher: jordikroon
Date: 2026-07-31T13:11:04+02:00
Commit: https://github.com/php/doc-en/commit/82cdc19b6292e0f840e6b22ca430105d9f0aa89e
Raw diff: https://github.com/php/doc-en/commit/82cdc19b6292e0f840e6b22ca430105d9f0aa89e.diff
Fix incorrect claim that opcache_invalidate() skips the file cache (#5723)
opcache_invalidate() has called zend_file_cache_invalidate() whenever
opcache.file_cache is enabled since file cache support was added in
2015 (ZendAccelerator.c), which deletes the corresponding file cache
entry. Update the description to reflect this instead of stating that
only the in-memory cache is invalidated.
Closes php/doc-en#5696
Changed paths:
M reference/opcache/functions/opcache-invalidate.xml
Diff:
diff --git a/reference/opcache/functions/opcache-invalidate.xml b/reference/opcache/functions/opcache-invalidate.xml
index 8312c12d5b81..f8f5717381a7 100644
--- a/reference/opcache/functions/opcache-invalidate.xml
+++ b/reference/opcache/functions/opcache-invalidate.xml
@@ -17,7 +17,9 @@
This function invalidates a particular script from the opcode cache. If
<parameter>force</parameter> is unset or &false;, the script will only be
invalidated if the modification time of the script is newer than the cached
- opcodes. This function only invalidates in-memory cache and not file cache.
+ opcodes. If the <link linkend="ini.opcache.file-cache">opcache.file_cache</link>
+ directive is enabled, this function also invalidates the corresponding
+ file cache entry.
</simpara>
</refsect1>