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
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • 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
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • Smarty_CacheResource
  • Smarty_CacheResource_Custom
  • Smarty_CacheResource_KeyValueStore
  • Smarty_Internal_CacheResource_File
  • Overview
  • Package
  • Class
  • Todo
  • Download

Class Smarty_CacheResource

Cache Handler API

Direct known subclasses

Smarty_CacheResource_Custom, Smarty_CacheResource_KeyValueStore, Smarty_Internal_CacheResource_File
Abstract
Package: Smarty\Cacher
Author: Rodney Rehm
Located at plugins/smarty/smarty_source/sysplugins/smarty_cacheresource.php
Methods summary
abstract public
# populate( Smarty_Template_Cached $cached, Smarty_Internal_Template $_template )

populate Cached Object with meta data from Resource

populate Cached Object with meta data from Resource

Parameters

$cached
cached object
$_template
template object
abstract public
# populateTimestamp( Smarty_Template_Cached $cached )

populate Cached Object with timestamp and exists from Resource

populate Cached Object with timestamp and exists from Resource

Parameters

$cached
abstract public boolean
# process( Smarty_Internal_Template $_template, Smarty_Template_Cached $cached = null )

Read the cached template and process header

Read the cached template and process header

Parameters

$_template
template object
$cached
cached object

Returns

boolean
true or false if the cached content does not exist
abstract public boolean
# writeCachedContent( Smarty_Internal_Template $_template, string $content )

Write the rendered template output to cache

Write the rendered template output to cache

Parameters

$_template
template object
$content
content to cache

Returns

boolean
success
public null|string
# getCachedContent( Smarty_Internal_Template $_template )

Return cached content

Return cached content

Parameters

$_template
template object

Returns

null|string
abstract public integer
# clearAll( Smarty $smarty, integer $exp_time = null )

Empty cache

Empty cache

Parameters

$smarty
Smarty object
$exp_time
expiration time (number of seconds, not timestamp)

Returns

integer
number of cache files deleted
abstract public integer
# clear( Smarty $smarty, string $resource_name, string $cache_id, string $compile_id, integer $exp_time )

Empty cache for a specific template

Empty cache for a specific template

Parameters

$smarty
Smarty object
$resource_name
template name
$cache_id
cache id
$compile_id
compile id
$exp_time
expiration time (number of seconds, not timestamp)

Returns

integer
number of cache files deleted
public boolean|null
# locked( Smarty $smarty, Smarty_Template_Cached $cached )

Parameters

$smarty
$cached

Returns

boolean|null
public boolean
# hasLock( Smarty $smarty, Smarty_Template_Cached $cached )

Check is cache is locked for this template

Check is cache is locked for this template

Parameters

$smarty
$cached

Returns

boolean
public boolean
# acquireLock( Smarty $smarty, Smarty_Template_Cached $cached )

Lock cache for this template

Lock cache for this template

Parameters

$smarty
$cached

Returns

boolean
public boolean
# releaseLock( Smarty $smarty, Smarty_Template_Cached $cached )

Unlock cache for this template

Unlock cache for this template

Parameters

$smarty
$cached

Returns

boolean
public static Smarty_CacheResource
# load( Smarty $smarty, string $type = null )

Load Cache Resource Handler

Load Cache Resource Handler

Parameters

$smarty
Smarty object
$type
name of the cache resource

Returns

Smarty_CacheResource
Cache Resource Handler

Throws

SmartyException
public static
# invalidLoadedCache( Smarty $smarty )

Invalid Loaded Cache Files

Invalid Loaded Cache Files

Parameters

$smarty
Smarty object
Properties summary
public static array $resources

cache for Smarty_CacheResource instances

cache for Smarty_CacheResource instances

# array()
protected static array $sysplugins

resource types provided by the core

resource types provided by the core

# array( 'file' => true, )
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen