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

This commit is contained in:
Matthias Pigulla 2015-10-22 12:12:04 +02:00 committed by Fabien Potencier
parent 613910bc9f
commit 982710ff18
1 changed files with 4 additions and 1 deletions

View File

@ -106,7 +106,10 @@ class Store implements StoreInterface
public function isLocked(Request $request)
{
return is_file($this->getPath($this->getCacheKey($request).'.lck'));
$path = $this->getPath($this->getCacheKey($request).'.lck');
clearstatcache(true, $path);
return is_file($path);
}
/**