eZPublishCommunityProject(LegacyStack)  2013.6
eZSubtreeCache Class Reference

The class eZSubtreeCache does. More...

Public Member Functions

 eZSubtreeCache ()
 

Static Public Member Functions

static cleanup (&$nodeList)
 
static cleanupAll ()
 
static cleanupByNodeIDs (&$nodeIDList)
 
static cleanupCacheDir ($cacheDir)
 
static removeAllExpiryCacheFromDisk ()
 
static removeExpiryCacheFromDisk ($expiryCachePath)
 
static renameDir ($dir)
 

Detailed Description

The class eZSubtreeCache does.

Member Function Documentation

static eZSubtreeCache::cleanup ( $nodeList)
static

Clears template block caches with 'subtree_ezpiry' parameter for nodes in the $nodeList. Note: if 'DelayedCacheBlockCleanup' setting is enabled then expiried caches will be renamed only (removing from disk should be made, for example, by cronjob).

Referenced by cleanupByNodeIDs(), and eZContentCacheManager\clearTemplateBlockCache().

static eZSubtreeCache::cleanupAll ( )
static

Removes all caches which were created using 'cache-block' operator with 'subtree_expiry' parameter.

Referenced by cleanupByNodeIDs(), and eZContentCacheManager\clearAllContentCache().

static eZSubtreeCache::cleanupByNodeIDs ( $nodeIDList)
static

Removes caches which were created using 'cache-block' operator with 'subtree_expiry' parameter. $nodeList is an array of node's ids. It is used to determine caches to remove. if $nodeList is not an array or if $nodeList is empty all 'subtree_expiry' caches will be removed.

static eZSubtreeCache::cleanupCacheDir (   $cacheDir)
static

If DelayedCacheBlockCleanup is enables just renames $cachDir, otherwise removes $cacheDir from disk.

Referenced by cleanup(), and cleanupAll().

eZSubtreeCache::eZSubtreeCache ( )

Constructor

static eZSubtreeCache::removeAllExpiryCacheFromDisk ( )
static
static eZSubtreeCache::removeExpiryCacheFromDisk (   $expiryCachePath)
static

$expiryCachePath is a path to directory with cache that should be removed

Referenced by cleanupCacheDir(), and removeAllExpiryCacheFromDisk().

static eZSubtreeCache::renameDir (   $dir)
static

$dir is a path to the cache directory which should be renamed. $dir is relative to the root directiry of 'subtree' cache.

Referenced by cleanupCacheDir().


The documentation for this class was generated from the following file: