Skip to content

Commit a886416

Browse files
PhpFilesAdapter not invalidating cache
1 parent 6f6b216 commit a886416

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

components/cache/adapters/php_files_adapter.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ file similar to the following::
3232
As cache items are included and parsed as native PHP code and due to the way `OPcache`_
3333
handles file includes, this adapter has the potential to be much faster than other
3434
filesystem-based caches.
35-
35+
36+
.. caution::
37+
If you have configured Opcache to not check the files timestamps
38+
(see https://symfony.com/doc/current/performance.html#performance-dont-check-timestamps),
39+
the cached items will not not be invalidated unless you clear the opcache.
40+
3641
The PhpFilesAdapter can optionally be provided a namespace, default cache lifetime, and cache
3742
directory path as constructor arguments::
3843

0 commit comments

Comments
 (0)