PageCache

Executes the page caching before the main kernel takes over the request.

Hierarchy

  • class \Drupal\page_cache\StackMiddleware\PageCache implements HttpKernelInterface

File

core/modules/page_cache/src/StackMiddleware/PageCache.php, line 20

Namespace

Drupal\page_cache\StackMiddleware

Members

Name Modifiers Type Description
HttpKernelInterface::MASTER_REQUEST constant
HttpKernelInterface::SUB_REQUEST constant
PageCache::$cache protected property The cache bin.
PageCache::$httpKernel protected property The wrapped HTTP kernel.
PageCache::$requestPolicy protected property A policy rule determining the cacheability of a request.
PageCache::$responsePolicy protected property A policy rule determining the cacheability of the response.
PageCache::fetch protected function Fetches a response from the backend and stores it in the cache.
PageCache::get protected function Returns a response object from the page cache.
PageCache::getCacheId protected function Gets the page cache ID for this request.
PageCache::handle public function Handles a Request to convert it to a Response. Overrides HttpKernelInterface::handle
PageCache::lookup protected function Retrieves a response from the cache or fetches it from the backend.
PageCache::pass protected function Sidesteps the page cache and directly forwards a request to the backend.
PageCache::set protected function Stores a response object in the page cache.
PageCache::__construct public function Constructs a PageCache object.
doc_Drupal
2016-10-29 09:32:52
Comments
Leave a Comment

Please login to continue.