Inheritance diagram for CacheHelper:

Public Member Functions | |
| __parseFile ($file, $cache) | |
| __parseOutput ($cache) | |
| __writeFile ($content, $timestamp, $useCallbacks=false) | |
| cache ($file, $out, $cache=false) | |
Public Attributes | |
| $__match = array() | |
| $__replace = array() | |
| $cacheAction | |
| $view | |
Definition at line 35 of file cache.php.
| CacheHelper::__parseFile | ( | $ | file, | |
| $ | cache | |||
| ) |
Parse file searching for no cache tags
| string | $file | |
| boolean | $cache private |
Definition at line 154 of file cache.php.
References fileExistsInPath().
Referenced by cache().
| CacheHelper::__parseOutput | ( | $ | cache | ) |
| CacheHelper::__writeFile | ( | $ | content, | |
| $ | timestamp, | |||
| $ | useCallbacks = false | |||
| ) |
Write a cached version of the file
| string | $file | |
| sting | $timestamp |
Definition at line 225 of file cache.php.
References $path, cache(), App::import(), params(), Router::setRequestInfo(), slug(), variable(), and Helper::webroot().
Referenced by cache().
| CacheHelper::cache | ( | $ | file, | |
| $ | out, | |||
| $ | cache = false | |||
| ) |
Main method used to cache a view
| string | $file File to cache | |
| string | $out output to cache | |
| boolean | $cache |
Definition at line 74 of file cache.php.
References $out, __parseFile(), __parseOutput(), __writeFile(), slug(), and underscore().
Referenced by __writeFile().
1.4.7