FilePageCache
class FilePageCache extends PageCache (View source)
Properties
static PageCache|null deprecated | $library | from PageCache |
Methods
Send the cache-related HTTP headers for a page to the current response.
Check if a page contained in a PageView should be stored in the cache.
Get the key that identifies the cache entry for a page or a request.
Get the host name under which the page or request belongs to.
Removes all values from the cache.
No description
Details
Response
deliver(PageCacheRecord $record)
Build a Response object starting from a cached page.
static PageCache
getLibrary()
Get the page cache library.
bool
shouldCheckCache(Request $req)
Determine if we should check if a page is in the cache.
outputCacheHeaders(Page $c)
deprecated
deprecated
$pageCache->deliver()
method to retrieve a response object and either return it from a controller method or, if you must, use
$response->prepare($request)->send()
Send the cache-related HTTP headers for a page to the current response.
array
getCacheHeaders(Page $c)
Get the cache-related HTTP headers for a page.
bool
shouldAddToCache(PageView $v)
Check if a page contained in a PageView should be stored in the cache.
string|null
getCacheKey(Page|Request|PageCacheRecord|mixed $mixed)
Get the key that identifies the cache entry for a page or a request.
string|null
getCacheHost(Page|Request|mixed $mixed)
Get the host name under which the page or request belongs to.
PageCacheRecord|null
getRecord(Page|Request|mixed $mixed)
Get the cached item for a page or a request.
set(Page $c, string $content)
Store a page in the cache.
purgeByRecord(PageCacheRecord $rec)
Remove a cache entry given the record retrieved from the cache.
purge(Page $c)
Remove a cache entry given the page.
flush()
Removes all values from the cache.
protected
getCacheFile($mixed)
No description