Skip to content

Commit e3f4278

Browse files
committed
Merge branch '2.3' into 2.7
* 2.3: [HttpKernel] clearstatcache() so the Cache sees when a .lck file has been released
2 parents fdbf1fa + b2899a6 commit e3f4278

File tree

1 file changed

+4
-1
lines changed
  • src/Symfony/Component/HttpKernel/HttpCache

1 file changed

+4
-1
lines changed

src/Symfony/Component/HttpKernel/HttpCache/Store.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ public function unlock(Request $request)
110110

111111
public function isLocked(Request $request)
112112
{
113-
return is_file($this->getPath($this->getCacheKey($request).'.lck'));
113+
$path = $this->getPath($this->getCacheKey($request).'.lck');
114+
clearstatcache(true, $path);
115+
116+
return is_file($path);
114117
}
115118

116119
/**

0 commit comments

Comments
 (0)