private function HttpCache::record in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/HttpCache/HttpCache.php \Symfony\Component\HttpKernel\HttpCache\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 vendor/symfony/ http-kernel/ HttpCache/ HttpCache.php 
- Forwards the Request to the backend and returns the Response.
- HttpCache::invalidate in vendor/symfony/ http-kernel/ HttpCache/ HttpCache.php 
- Invalidates non-safe methods (like POST, PUT, and DELETE).
- HttpCache::lock in vendor/symfony/ http-kernel/ HttpCache/ HttpCache.php 
- Locks a Request during the call to the backend.
- HttpCache::lookup in vendor/symfony/ http-kernel/ HttpCache/ HttpCache.php 
- Lookups a Response from the cache for the given Request.
- HttpCache::pass in vendor/symfony/ http-kernel/ HttpCache/ HttpCache.php 
- Forwards the Request to the backend without storing the Response in the cache.
File
- vendor/symfony/ http-kernel/ HttpCache/ HttpCache.php, line 698 
Class
- HttpCache
- Cache provides HTTP caching.
Namespace
Symfony\Component\HttpKernel\HttpCacheCode
private function record(Request $request, $event) {
  $path = $request
    ->getPathInfo();
  if ($qs = $request
    ->getQueryString()) {
    $path .= '?' . $qs;
  }
  $this->traces[$request
    ->getMethod() . ' ' . $path][] = $event;
}