8000 minor #10498 PhpFilesAdapter not invalidating cache when opcache does… · symfony/symfony-docs@3476be0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3476be0

Browse files
committed
minor #10498 PhpFilesAdapter not invalidating cache when opcache does not validate file timestamps (arno14)
This PR was merged into the 3.4 branch. Discussion ---------- PhpFilesAdapter not invalidating cache when opcache does not validate file timestamps <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- a886416 PhpFilesAdapter not invalidating cache
2 parents 6f6b216 + a886416 commit 3476be0

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)
0