8000 [HttpKernel] clearstatcache() so the Cache sees when a .lck file has … · symfony/symfony@982710f · GitHub
[go: up one dir, main page]

Skip to content

Commit 982710f

Browse files
mpdudefabpot
authored andcommitted
[HttpKernel] clearstatcache() so the Cache sees when a .lck file has been released
1 parent 613910b commit 982710f

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
@@ -106,7 +106,10 @@ public function unlock(Request $request)
106106

107107
public function isLocked(Request $request)
108108
{
109-
return is_file($this->getPath($this->getCacheKey($request).'.lck'));
109+
$path = $this->getPath($this->getCacheKey($request).'.lck');
110+
clearstatcache(true, $path);
111+
112+
return is_file($path);
110113
}
111114

112115
/**

0 commit comments

Comments
 (0)
0