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_Internal_CacheResource_File

This class does contain all necessary methods for the HTML cache on file system Implements the file system as resource for the HTML cache Version ussing nocache inserts.

Smarty_CacheResource
Extended by Smarty_Internal_CacheResource_File
Package: Smarty\Cacher
Author: Uwe Tews
Author: Rodney Rehm
Located at plugins/smarty/smarty_source/sysplugins/smarty_internal_cacheresource_file.php
Methods summary
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
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
cached object
public booleantrue
# process( Smarty_Internal_Template $_template, Smarty_Template_Cached $cached = null )

Read the cached template and process its header

Read the cached template and process its header

Parameters

$_template
template object
$cached
cached object

Returns

booleantrue
or false if the cached content does not exist
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 integer
# clearAll( Smarty $smarty, integer $exp_time = null )

Empty cache

Empty cache

Parameters

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

Returns

integer
number of cache files deleted
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
$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
# 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
Smarty object
$cached
cached object

Returns

boolean
true or false if cache is locked

Overrides

Smarty_CacheResource::hasLock()
public boolean|
# acquireLock( Smarty $smarty, Smarty_Template_Cached $cached )

Lock cache for this template

Lock cache for this template

Parameters

$smarty
Smarty object
$cached
cached object

Returns

boolean|

Overrides

Smarty_CacheResource::acquireLock()
public boolean|
# releaseLock( Smarty $smarty, Smarty_Template_Cached $cached )

Unlock cache for this template

Unlock cache for this template

Parameters

$smarty
Smarty object
$cached
cached object

Returns

boolean|

Overrides

Smarty_CacheResource::releaseLock()
Methods inherited from Smarty_CacheResource
getCachedContent(), invalidLoadedCache(), load(), locked()
Properties inherited from Smarty_CacheResource
$resources, $sysplugins
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen