This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/HttpKernel/HttpCache
Fabien Potencier b2899a6c2e bug #16312 [HttpKernel] clearstatcache() so the Cache sees when a .lck file has been released (mpdude)
This PR was squashed before being merged into the 2.3 branch (closes #16312).

Discussion
----------

[HttpKernel] clearstatcache() so the Cache sees when a .lck file has been released

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #15813
| License       | MIT
| Doc PR        | n/a

I've been trying to debug #15813 and modified the Store in a way to keep unique request IDs in the .lck file. That way, I was hoping to find out which request is blocking and/or if the request is actually still running.

It turned out that `is_file()` would claim that a lock file still exists, but a subsequent attempt to read the information from that file returned "file not found" errors.

So, my assumption is that the `is_file()` result is based on the fstat cache and wrong once a process has seen the lock file.

@jakzal said in https://github.com/symfony/symfony/issues/15813#issuecomment-149013691 that `unlink()`ing the lock file should clear the statcache, but I doubt this is true across PHP processes.

Commits
-------

982710f [HttpKernel] clearstatcache() so the Cache sees when a .lck file has been released
2015-11-28 11:48:57 +01:00
..
Esi.php bug #14802 [HttpKernel] fix broken multiline <esi:remove> (sstok) 2015-09-14 09:14:59 +02:00
EsiResponseCacheStrategy.php CS: Pre incrementation/decrementation should be used if possible 2015-04-07 19:54:22 +02:00
EsiResponseCacheStrategyInterface.php fixed CS 2012-07-09 14:54:20 +02:00
HttpCache.php [Http*] Mock time() to fix transient tests 2015-10-13 16:19:21 +02:00
Store.php bug #16312 [HttpKernel] clearstatcache() so the Cache sees when a .lck file has been released (mpdude) 2015-11-28 11:48:57 +01:00
StoreInterface.php Docblock fixes 2014-11-30 13:33:44 +00:00