Skip to content

Commit

Permalink
Fix #75070: Opcache functions only apply to in-memory cache
Browse files Browse the repository at this point in the history
Closes GH-1030.
  • Loading branch information
frederikbosch committed Oct 15, 2021
1 parent b323b5e commit 50b104c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion reference/opcache/functions/opcache-get-status.xml
Expand Up @@ -13,7 +13,8 @@
<methodparam choice="opt"><type>bool</type><parameter>include_scripts</parameter><initializer>&true;</initializer></methodparam>
</methodsynopsis>
<para>
This function returns state information about the cache instance
This function returns state information about the in-memory cache instance. It will not return any
information about the file cache.
</para>
</refsect1>

Expand Down
2 changes: 1 addition & 1 deletion reference/opcache/functions/opcache-invalidate.xml
Expand Up @@ -17,7 +17,7 @@
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.
opcodes. This function only invalidates in-memory cache and not file cache.
</para>
</refsect1>

Expand Down
1 change: 1 addition & 0 deletions reference/opcache/functions/opcache-is-script-cached.xml
Expand Up @@ -15,6 +15,7 @@
<para>
This function checks if a PHP script has been cached in OPCache. This can be
used to more easily detect the "warming" of the cache for a particular script.
This function only checks in-memory cache, not file cache.
</para>
</refsect1>

Expand Down
3 changes: 2 additions & 1 deletion reference/opcache/functions/opcache-reset.xml
Expand Up @@ -16,7 +16,8 @@
<para>
This function resets the entire opcode cache. After calling
<function>opcache_reset</function>, all scripts will be reloaded and
reparsed the next time they are hit.
reparsed the next time they are hit. This function only resets
in-memory cache, not the file cache.
</para>
</refsect1>

Expand Down

0 comments on commit 50b104c

Please sign in to comment.