Class cOutputCache
This class contains functions for the CONTENIDO output cache.
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 to create an instance of this class. |
public
mixed
|
|
public
mixed
|
|
public
|string
|
|
public
mixed
|
|
public
|
|
public
|
|
public
string
|
|
protected
boolean|string
|
|
public
|
|
public
|
|
public
|
|
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 to activate caching. |
protected
boolean
|
$_bDebug | false |
#
Flag for output of debug informations. |
protected
boolean
|
$_bHtmlComment | false |
#
Flag to print html comment including some debug informations. |
protected
integer
|
$_iStartTime |
|
#
Start time of caching. |
protected
array
|
$_aIDOptions |
|
#
Option array for generating cache identifier (e.g. $_GET,$_POST, $_COOKIE, ...). |
protected
array
|
$_aCacheOptions |
|
#
Option array for pear caching. |
protected
array
|
$_aEventCode |
|
#
Handler array to store code, beeing executed on some hooks. We have actually two hooks:
|
protected
string
|
$_sID |
|
#
Unique identifier for caching. |
protected
string
|
$_sDir | 'cache/' |
#
Directory to store cached output. |
protected
string
|
$_sGroup | 'default' |
#
Subdirectory to store cached output. |
protected
string
|
$_sPrefix | 'cache_output_' |
#
Substring to add as prefix to cache-filename. |
protected
integer
|
$_iLifetime | 3600 |
#
Default lifetime of cached files. |
protected
string
|
$_sDebugMsg | '' |
#
Used to 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. |