|
eZ Publish
[trunk]
|
Cache handling for template tree nodes. More...
Static Public Member Functions | |
| static | cacheDirectory () |
| static | cachedTree ($key, $uri, $res, $templatePath, &$extraParameters) |
| static & | cacheTable () |
| static | canRestoreCache ($key, $timestamp, $templateFilepath) |
| static | isCacheEnabled () |
| static | restoreCache ($key, $templateFilepath) |
| static | setCachedTree ($originalKey, $uri, $res, $templatePath, &$extraParameters, &$root) |
| static | storeCache ($key, $templateFilepath) |
| static | treeCacheFilename ($key, $templateFilepath) |
Public Attributes | |
| const | CODE_DATE = 1044440833 |
Static Private Member Functions | |
| static | internalKey ($key) |
Cache handling for template tree nodes.
Definition at line 17 of file eztemplatetreecache.php.
| static eZTemplateTreeCache::cacheDirectory | ( | ) | [static] |
Definition at line 126 of file eztemplatetreecache.php.
Referenced by canRestoreCache(), restoreCache(), and storeCache().
| static eZTemplateTreeCache::cachedTree | ( | $ | key, |
| $ | uri, | ||
| $ | res, | ||
| $ | templatePath, | ||
| &$ | extraParameters | ||
| ) | [static] |
null if no cache data was found. Definition at line 54 of file eztemplatetreecache.php.
Referenced by eZTemplateFileResource\cachedTemplateTree(), and eZTemplateFileResource\hasCachedProcessTree().
| static& eZTemplateTreeCache::cacheTable | ( | ) | [static] |
Definition at line 25 of file eztemplatetreecache.php.
Referenced by cachedTree(), canRestoreCache(), restoreCache(), setCachedTree(), and storeCache().
| static eZTemplateTreeCache::canRestoreCache | ( | $ | key, |
| $ | timestamp, | ||
| $ | templateFilepath | ||
| ) | [static] |
Definition at line 159 of file eztemplatetreecache.php.
Referenced by eZTemplateFileResource\cachedTemplateTree(), and eZTemplateFileResource\hasCachedProcessTree().
| static eZTemplateTreeCache::internalKey | ( | $ | key | ) | [static, private] |
Definition at line 38 of file eztemplatetreecache.php.
Referenced by cachedTree(), canRestoreCache(), restoreCache(), setCachedTree(), and storeCache().
| static eZTemplateTreeCache::isCacheEnabled | ( | ) | [static] |
Definition at line 105 of file eztemplatetreecache.php.
Referenced by canRestoreCache(), restoreCache(), and storeCache().
| static eZTemplateTreeCache::restoreCache | ( | $ | key, |
| $ | templateFilepath | ||
| ) | [static] |
Loads the cache with the key $key from a file and sets the result in the cache table.
Definition at line 181 of file eztemplatetreecache.php.
Referenced by eZTemplateFileResource\cachedTemplateTree(), and eZTemplateFileResource\hasCachedProcessTree().
| static eZTemplateTreeCache::setCachedTree | ( | $ | originalKey, |
| $ | uri, | ||
| $ | res, | ||
| $ | templatePath, | ||
| &$ | extraParameters, | ||
| &$ | root | ||
| ) | [static] |
Sets the template tree node $root to be cached with the cache key $root.
Definition at line 74 of file eztemplatetreecache.php.
Referenced by eZTemplateFileResource\setCachedTemplateTree().
| static eZTemplateTreeCache::storeCache | ( | $ | key, |
| $ | templateFilepath | ||
| ) | [static] |
Stores the data of the cache with the key $key to a file.
Definition at line 212 of file eztemplatetreecache.php.
Referenced by eZTemplateFileResource\setCachedTemplateTree().
| static eZTemplateTreeCache::treeCacheFilename | ( | $ | key, |
| $ | templateFilepath | ||
| ) | [static] |
Creates the name for the tree cache file and returns it. The name conists of the md5 of the key and charset with the original filename appended.
Definition at line 140 of file eztemplatetreecache.php.
Referenced by canRestoreCache(), restoreCache(), and storeCache().
| const eZTemplateTreeCache::CODE_DATE = 1044440833 |
Definition at line 19 of file eztemplatetreecache.php.
Referenced by restoreCache(), and storeCache().