class ResettablePageCache in Tome 8
Allows the cache ID to be reset between requests.
@internal
Hierarchy
- class \Drupal\page_cache\StackMiddleware\PageCache implements \Symfony\Component\HttpKernel\HttpKernelInterface
- class \Drupal\tome_static\StackMiddleware\ResettablePageCache
Expanded class hierarchy of ResettablePageCache
2 files declare their use of ResettablePageCache
- PageCacheRequestPrepareSubscriber.php in modules/
tome_static/ src/ EventSubscriber/ PageCacheRequestPrepareSubscriber.php - TomeStaticServiceProvider.php in modules/
tome_static/ src/ TomeStaticServiceProvider.php
File
- modules/
tome_static/ src/ StackMiddleware/ ResettablePageCache.php, line 12
Namespace
Drupal\tome_static\StackMiddlewareView source
class ResettablePageCache extends PageCache {
/**
* {@inheritdoc}
*/
protected $cid;
/**
* Resets the cache ID.
*/
public function resetCache() {
$this->cid = NULL;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PageCache:: |
protected | property | The cache bin. | |
PageCache:: |
protected | property | The wrapped HTTP kernel. | |
PageCache:: |
protected | property | A policy rule determining the cacheability of a request. | |
PageCache:: |
protected | property | A policy rule determining the cacheability of the response. | |
PageCache:: |
protected | function | Fetches a response from the backend and stores it in the cache. | |
PageCache:: |
protected | function | Returns a response object from the page cache. | |
PageCache:: |
protected | function | Gets the page cache ID for this request. | |
PageCache:: |
public | function | Handles a Request to convert it to a Response. | |
PageCache:: |
protected | function | Retrieves a response from the cache or fetches it from the backend. | |
PageCache:: |
protected | function | Sidesteps the page cache and directly forwards a request to the backend. | |
PageCache:: |
protected | function | Stores a response object in the page cache. | |
PageCache:: |
protected | function | Stores a response in the page cache. | |
PageCache:: |
public | function | Constructs a PageCache object. | |
ResettablePageCache:: |
protected | property |
The cache ID for the (master) request. Overrides PageCache:: |
|
ResettablePageCache:: |
public | function | Resets the cache ID. |