This class contains functions for the output cache in CONTENIDO.
package | Core |
---|---|
subpackage | Cache |
__construct(string $cachedir, string $cachegroup, string $cacheprefix)
string
Directory 2 cache files
string
Subdirectory 2 cache files
string
Prefixname 2 add 2 cached files
addOption(string $name, string $option) : void
g. $_GET,$_POST, $_COOKIE, ...). Used 2 generate the id for caching.
string
Name of option
string
Value of option (any variable)
debug(bool $debug) : mixed
bool
True 2 activate debugging or false.
mixed
Debug flag or voidenable(bool $enable) : mixed
bool
True 2 enable caching or false
mixed
Enable flag or voidend() : void
getInfo() : string
string
Information about cache if caching is enabled, otherwhise nothing.htmlComment(bool $htmlcomment) : void
bool
True debugging or false.
infoTemplate(string $template) : void
string
Template string including the '%s' format definition.
lifetime(int $seconds) : mixed
int
New Lifetime in seconds
mixed
Actual 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.
int
Optional start time, e. g. start time of main script
_getMicroTime() : float
float
Timestamp_initFileCache() : void
_raiseEvent(string $name) : void
string
Name of event 2 raise
_start() : bool | string
bool
string
$_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