This class contains functions for the output cache in CONTENIDO.
| package | Core |
|---|---|
| subpackage | Cache |
__construct(string $cachedir, string $cachegroup, string $cacheprefix)
stringDirectory 2 cache files
stringSubdirectory 2 cache files
stringPrefixname 2 add 2 cached files
addOption(string $name, string $option) : void
g. $_GET,$_POST, $_COOKIE, ...). Used 2 generate the id for caching.
stringName of option
stringValue of option (any variable)
debug(bool $debug) : mixed
boolTrue 2 activate debugging or false.
mixedDebug flag or voidenable(bool $enable) : mixed
boolTrue 2 enable caching or false
mixedEnable flag or voidend() : void
getInfo() : string
stringInformation about cache if caching is enabled, otherwhise nothing.htmlComment(bool $htmlcomment) : void
boolTrue debugging or false.
infoTemplate(string $template) : void
stringTemplate string including the '%s' format definition.
lifetime(int $seconds) : mixed
intNew Lifetime in seconds
mixedActual lifetime or voidremoveFromCache() : void
This is nesessary to delete cached articles, if they are changed on backend.
start(int $iPageStartTime) : void
The script will be terminated by calling die(), if any cached content is found.
intOptional start time, e. g. start time of main script
_getMicroTime() : float
floatTimestamp_initFileCache() : void
_raiseEvent(string $name) : void
stringName of event 2 raise
_start() : bool | string
boolstring
$_aCacheOptions : array
$_aEventCode : array
We have actually two hooks: - 'beforeoutput': code to execute before doing the output - 'afteroutput' code to execute after output
$_aIDOptions : array
g. $_GET,$_POST, $_COOKIE, ...).
$_bDebug : bool
$_bEnableCaching : bool
$_bHtmlComment : bool
$_fileCache : \cFileCache
$_iLifetime : int
$_iStartTime : int
$_sDebugMsg : string
$_sDebugTpl : string
$_sDir : string
$_sGroup : string
$_sHtmlCommentTpl : string
$_sID : string
$_sPrefix : string