Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • PHP
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SIWECOS
    • 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 to create an instance of this class.

Constructor to create an instance of this class.

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 to cache output - $a['cachedir'] string directory where cached content is to store. - $a['cachegroup'] string cache group, will be a subdirectory inside cachedir - $a['cacheprefix'] string add prefix to stored filenames - $a['idoptions'] array several variables to 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 [optional] Flag of createcode state from table con_cat_art

Throws

cDbException
cException

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 to 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 to 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, otherwise false.

Throws

cDbException
cException
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.10.1 API documentation generated by ApiGen 2.8.0