Clear a type cache
static boolean
clearTypeCache
(string $type)
-
string
$type: : the cache type to clear
Clear type cache using metas
static boolean
clearTypeCacheByMetas
(string $type, array $metas, [contant $mode = Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG])
-
string
$type: : the cache type to clear
-
array
$metas: : the cache metas to clear
-
contant
$mode: : the zend cache constant to clean matching cache Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG (default) Zend_Cache::CLEANING_MODE_MATCHING_TAG Zend_Cache::CLEANING_MODE_NOT_MATCHING_TAG
Wrap given PHP code with PHP cache code
static string
wrapCode
(string $hash, string $content, [string $lifetime = 'auto'])
-
string
$hash: : the cache hash to use
-
string
$content: : the PHP code to wrap
-
string
$lifetime: : the lifetime to use for cache (default : auto)
Constructor.
initialize object.
void
__construct
(string $hash, string $type, [mixed $lifetime = null], [ $contextAware = false])
-
string
$hash: the cache hash to use
-
string
$type: : the type of the cache to use
-
mixed
$lifetime: : the cache lifetime
-
$contextAware
Clear cache by metas
boolean
clear
([array $metas = array()], [contant $mode = Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG])
-
array
$metas: : the cache metas to clear cache of
-
contant
$mode: : the zend cache constant to clean matching cache Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG (default) Zend_Cache::CLEANING_MODE_MATCHING_TAG Zend_Cache::CLEANING_MODE_NOT_MATCHING_TAG
End output buffering and save result to cache
string
endSave
()
Does cache content exists
boolean
exist
()
Get zend cache ids by metas
array
getByMetas
(array $metas, [contant $mode = Zend_Cache::CLEANING_MODE_MATCHING_TAG])
-
array
$metas: : the cache metas to get
-
contant
$mode: : the zend cache constant to clean matching cache Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG Zend_Cache::CLEANING_MODE_MATCHING_TAG (default) Zend_Cache::CLEANING_MODE_NOT_MATCHING_TAG
Load cache content
string
load
()
Save cache content
boolean
save
(string $content, [array $metas = array()])
-
array
$metas: : the cache metas to set
-
string
$content: content : the cache content to save
Start cache buffering All output starting from this method call will be recorded to be saved in cache
void
start
()
Convert cache metas into Zend cache tags
array
_createTags
(array $metas)
-
array
$metas: : the cache metas to convert
Inherited Methods
Inherited From CMS_grandFather
CMS_grandFather::autoload()
CMS_grandFather::hasError()
CMS_grandFather::log()
CMS_grandFather::PHPErrorHandler()
CMS_grandFather::raiseError()
CMS_grandFather::setDebug()
CMS_grandFather::setLog()
CMS_grandFather::_raiseError()
CMS_grandFather::__call()