function Store::unlock
Releases the lock for the given Request.
Return value
bool False if the lock file does not exist or cannot be unlocked, true otherwise
Overrides StoreInterface::unlock
File
-
vendor/
symfony/ http-kernel/ HttpCache/ Store.php, line 99
Class
- Store
- Store implements all the logic for storing cache metadata (Request and Response headers).
Namespace
Symfony\Component\HttpKernel\HttpCacheCode
public function unlock(Request $request) : bool {
$key = $this->getCacheKey($request);
if (isset($this->locks[$key])) {
flock($this->locks[$key], \LOCK_UN);
fclose($this->locks[$key]);
unset($this->locks[$key]);
return true;
}
return false;
}