You are here

public function Store::unlock in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/HttpCache/Store.php \Symfony\Component\HttpKernel\HttpCache\Store::unlock()

Releases the lock for the given Request.

Parameters

Request $request A Request instance:

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 100

Class

Store
Store implements all the logic for storing cache metadata (Request and Response headers).

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

public function unlock(Request $request) {
  $file = $this
    ->getPath($this
    ->getCacheKey($request) . '.lck');
  return is_file($file) ? @unlink($file) : false;
}