You are here

protected function Store::generateCacheKey in Zircon Profile 8

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

Generates a cache key for the given Request.

This method should return a key that must only depend on a normalized version of the request URI.

If the same URI can have more than one representation, based on some headers, use a Vary header to indicate them, and each representation will be stored independently under the same cache key.

Parameters

Request $request A Request instance:

Return value

string A key for the given Request

1 call to Store::generateCacheKey()
Store::getCacheKey in vendor/symfony/http-kernel/HttpCache/Store.php
Returns a cache key for the given Request.

File

vendor/symfony/http-kernel/HttpCache/Store.php, line 382

Class

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

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

protected function generateCacheKey(Request $request) {
  return 'md' . hash('sha256', $request
    ->getUri());
}