protected PageCache::getCacheId(Request $request)
Gets the page cache ID for this request.
Parameters
\Symfony\Component\HttpFoundation\Request $request: A request object.
Return value
string The cache ID for this request.
File
- core/modules/page_cache/src/StackMiddleware/PageCache.php, line 342
Class
- PageCache
- Executes the page caching before the main kernel takes over the request.
Namespace
Drupal\page_cache\StackMiddleware
Code
1 2 3 4 5 6 7 | protected function getCacheId(Request $request ) { $cid_parts = array ( $request ->getUri(), $request ->getRequestFormat(), ); return implode( ':' , $cid_parts ); } |
Please login to continue.