Class cOutputCache
This class contains functions for the output cache in CONTENIDO.
Direct known subclasses
cOutputCacheHandlerCopyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Murat Purc <murat@purc.de>
Located at classes/cache/class.output.cache.php
public
|
#
__construct( string $cachedir = NULL, string $cachegroup = NULL, string $cacheprefix = NULL )
Constructor of cOutputCache |
public
mixed
|
|
public
mixed
|
|
public
|string
|
|
public
mixed
|
|
public
|
|
public
|
|
public
string
|
|
protected
boolean
|
|
public
|
|
public
|
|
public
|
#
removeFromCache( )
Removes any cached content if exists. This is nesessary to delete cached articles, if they are changed on backend. |
protected
|
#
_initFileCache( )
Creates one-time a instance of PEAR cache output object and also the unique id, if propery $this->_oPearCache is not set. |
protected
|
|
protected
float
|
protected
|
$_fileCache |
|
#
File Cache Object |
protected
boolean
|
$_bEnableCaching | false |
#
Flag 2 activate caching. |
protected
boolean
|
$_bDebug | false |
#
Flag for output of debug informations. |
protected
boolean
|
$_bHtmlComment | false |
#
Flag 2 print html comment including some debug informations. |
protected
integer
|
$_iStartTime |
|
#
Start time of caching. |
protected
array
|
$_aIDOptions |
|
#
Option array 4 generating cache identifier (e. g. $_GET,$_POST, $_COOKIE, ...). |
protected
array
|
$_aCacheOptions |
|
#
Option array 4 pear caching. |
protected
array
|
$_aEventCode |
|
#
Handler array 2 store code, beeing executed on some hooks. We have actually two hooks:
|
protected
string
|
$_sID |
|
#
Unique identifier for caching. |
protected
string
|
$_sDir | 'cache/' |
#
Directory 2 store cached output. |
protected
string
|
$_sGroup | 'default' |
#
Subdirectory 2 store cached output. |
protected
string
|
$_sPrefix | 'cache_output_' |
#
Substring 2 add as prefix to cache-filename. |
protected
integer
|
$_iLifetime | 3600 |
#
Default lifetime of cached files. |
protected
string
|
$_sDebugMsg | '' |
#
Used 2 store debug message. |
protected
string
|
$_sDebugTpl | '<div>%s</div>' |
#
HTML code template used for debug message. |
protected
string
|
$_sHtmlCommentTpl | '
<!--
CACHESTATE: %s
TIME: %s
VALID UNTIL: %s
-->
' |
#
HTML comment template used for generating some debug infos. |