Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cFileCache
  • cOutputCache
  • cOutputCacheHandler
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class cOutputCacheHandler

This class contains functions for the output cache handler in CONTENIDO.

cOutputCache
Extended by cOutputCacheHandler
Package: Core\Cache
Copyright: 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
Methods summary
public
# __construct( array $aConf, cDb $db, integer $iCreateCode = NULL )

Constructor of cOutputCacheHandler. Does some checks and sets the configuration of cache object.

Constructor of cOutputCacheHandler. Does some checks and sets the configuration of cache object.

Parameters

$aConf
array
$aConf Configuration of caching as follows: - $a['excludecontenido'] bool. don't cache output, if we have a CONTENIDO variable, e. g. on calling frontend preview from backend - $a['enable'] bool. activate caching of frontend output - $a['debug'] bool. compose debuginfo (hit/miss and execution time of caching) - $a['infotemplate'] string. debug information template - $a['htmlcomment'] bool. add a html comment including several debug messages to output - $a['lifetime'] int. lifetime in seconds 2 cache output - $a['cachedir'] string. directory where cached content is 2 store. - $a['cachegroup'] string. cache group, will be a subdirectory inside cachedir - $a['cacheprefix'] string. add prefix 2 stored filenames - $a['idoptions'] array. several variables 2 create a unique id, if the output depends on them. e. g. array('uri' => $_SERVER['REQUEST_URI'], 'post' => $_POST, 'get' => $_GET);
$db
cDb
$db CONTENIDO database object
$iCreateCode
integer
$iCreateCode Flag of createcode state from table con_cat_art

Overrides

cOutputCache::__construct()
protected boolean
# _isCode2Create( mixed $iCreateCode )

Checks, if the create code flag is set. Output will be loaded from cache, if no code is 2 create. It also checks the state of global variable $force.

Checks, if the create code flag is set. Output will be loaded from cache, if no code is 2 create. It also checks the state of global variable $force.

Parameters

$iCreateCode
mixed
$iCreateCode State of create code (0 or 1). The state will be loaded from database if value is NULL

Returns

boolean
True if code is to create, otherwhise false.
Methods inherited from cOutputCache
_getMicroTime(), _initFileCache(), _raiseEvent(), _start(), addOption(), debug(), enable(), end(), getInfo(), htmlComment(), infoTemplate(), lifetime(), removeFromCache(), start()
Properties inherited from cOutputCache
$_aCacheOptions, $_aEventCode, $_aIDOptions, $_bDebug, $_bEnableCaching, $_bHtmlComment, $_fileCache, $_iLifetime, $_iStartTime, $_sDebugMsg, $_sDebugTpl, $_sDir, $_sGroup, $_sHtmlCommentTpl, $_sID, $_sPrefix
CMS CONTENIDO 4.9.5 API documentation generated by ApiGen 2.8.0