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
Flag 2 activate caching. |
#
false
|
protected
boolean
|
$_bDebug
Flag for output of debug informations. |
#
false
|
protected
boolean
|
$_bHtmlComment
Flag 2 print html comment including some debug informations. |
#
false
|
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: - 'beforeoutput': code to execute before doing the output - 'afteroutput' code to execute after output |
|
protected
string
|
$_sID
Unique identifier for caching. |
|
protected
string
|
$_sDir
Directory 2 store cached output. |
#
'cache/'
|
protected
string
|
$_sGroup
Subdirectory 2 store cached output. |
#
'default'
|
protected
string
|
$_sPrefix
Substring 2 add as prefix to cache-filename. |
#
'cache_output_'
|
protected
integer
|
$_iLifetime
Default lifetime of cached files. |
#
3600
|
protected
string
|
$_sDebugMsg
Used 2 store debug message. |
#
''
|
protected
string
|
$_sDebugTpl
HTML code template used for debug message. |
#
'<div>%s</div>'
|
protected
string
|
$_sHtmlCommentTpl
HTML comment template used for generating some debug infos. |
#
'
<!--
CACHESTATE: %s
TIME: %s
VALID UNTIL: %s
-->
'
|