eZ Publish  [4.2]
eZSubtreeCache Class Reference

The class eZSubtreeCache does. More...

List of all members.

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.

Definition at line 40 of file ezsubtreecache.php.


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).

Definition at line 80 of file ezsubtreecache.php.

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

static eZSubtreeCache::cleanupAll ( ) [static]

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

Definition at line 105 of file ezsubtreecache.php.

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.

Definition at line 55 of file ezsubtreecache.php.

static eZSubtreeCache::cleanupCacheDir ( cacheDir) [static]

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

Definition at line 115 of file ezsubtreecache.php.

Referenced by cleanup(), and cleanupAll().

eZSubtreeCache::eZSubtreeCache ( )

Constructor

Definition at line 45 of file ezsubtreecache.php.

static eZSubtreeCache::removeAllExpiryCacheFromDisk ( ) [static]

Definition at line 166 of file ezsubtreecache.php.

static eZSubtreeCache::removeExpiryCacheFromDisk ( expiryCachePath) [static]

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

Definition at line 176 of file ezsubtreecache.php.

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.

Definition at line 133 of file ezsubtreecache.php.

Referenced by cleanupCacheDir().


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