Public Member Functions | |
KjwCache ($cachePath= 'cache') | |
expire ($seconds) | |
start () | |
setDirty () | |
"delete" .cache files. | |
saveCache () | |
store cache files by copying the .cache to .cache.bak. | |
loadCache () | |
deletes current .cache files. | |
destroy () | |
Public Attributes | |
$_cachePath = null | |
$_cacheFile = null | |
$_enabled = false | |
$_expire = null |
Definition at line 23 of file KjwCache.php.
KjwCache::loadCache | ( | ) |
deletes current .cache files.
copies .cache.bak to .cache.
Definition at line 128 of file KjwCache.php.
KjwCache::saveCache | ( | ) |
store cache files by copying the .cache to .cache.bak.
removes old .bak files first, so we know this cache contains only newly cached items.
Definition at line 109 of file KjwCache.php.
KjwCache::setDirty | ( | ) |
"delete" .cache files.
. call saveCache first if you plan to undo..
Definition at line 93 of file KjwCache.php.