Package DE_EPAGES::Object::API::PageCache::Base
Backend interface for page cache handling.
Functions
- clearAllCaches
- clearObjectCache
- clearSiteCache
- clearStoreCache
- expire
- get
- lastModified
- new
- remove
- set
clearAllCaches
Deletes all pages of all databases from the cache.
Syntax |
$PageCache->clearAllCaches; |
clearObjectCache
Deletes all pages of a given object from the cache.
Syntax |
$PageCache->clearObjectCache($Object); |
Input |
|
clearSiteCache
Deletes all pages of a given site from the cache.
Syntax |
$PageCache->clearSiteCache($Site); |
Input |
|
clearStoreCache
Deletes all pages of the current database from the cache.
Syntax |
$PageCache->clearStoreCache; |
expire
Invalidates a page in the cache.
Syntax |
$Backend->expire( $Object, $CacheKeyPart ); |
Input |
|
get
Gets the content of a page from the cache. Returns undef if the page does not exist in the cache or has expired.
Syntax |
$Content = $Backend->get( $Object, $CacheKeyPart ); |
Example |
$Content = $Backend->get( $Object, 'View_en_GB' ); |
Input |
|
Return |
|
lastModified
Returns the time when the content has been written to the cache. Returns undef if the page does not exist in the cache or has expired.
Syntax |
$LastModified = $Backend->lastModified( $Object, $CacheKeyPart ); |
Input |
|
Return |
|
new
Creates a PageCache backend object.
Syntax |
$Backend = DE_EPAGES::Object::API::PageCache::Base->new( %Options ); |
Example |
$Backend = DE_EPAGES::Object::API::PageCache::Base->new( Site => $Site ); |
Input |
|
Return |
|
remove
Deletes a page from the cache.
Syntax |
$Backend->remove( $Object, $CacheKeyPart ); |
Input |
|
set
Writes the content of a page to the cache.
Syntax |
$Backend->set( $Object, $CacheKeyPart, $Content ); |
Example |
$Backend->set( $Object, 'View_en_GB', $Content ); |
Input |
|