public function Store::unlock

Releases the lock for the given Request.

Parameters

Request $request A Request instance:

Return value

Boolean False if the lock file does not exist or cannot be unlocked, true otherwise

Overrides StoreInterface::unlock

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/Store.php, line 98

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;
}