private function HttpCache::record

Records that an event took place.

Parameters

Request $request A Request instance:

string $event The event name:

7 calls to HttpCache::record()
HttpCache::forward in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
Forwards the Request to the backend and returns the Response.
HttpCache::invalidate in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
Invalidates non-safe methods (like POST, PUT, and DELETE).
HttpCache::lock in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
Locks a Request during the call to the backend.
HttpCache::lookup in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
Lookups a Response from the cache for the given Request.
HttpCache::pass in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
Forwards the Request to the backend without storing the Response in the cache.

... See full list

File

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

Class

HttpCache
Cache provides HTTP caching.

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

private function record(Request $request, $event) {
  $path = $request
    ->getPathInfo();
  if ($qs = $request
    ->getQueryString()) {
    $path .= '?' . $qs;
  }
  $this->traces[$request
    ->getMethod() . ' ' . $path][] = $event;
}