eZ Publish  [trunk]
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 17 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 57 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 82 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 32 of file ezsubtreecache.php.

static eZSubtreeCache::cleanupCacheDir ( cacheDir) [static]

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

Definition at line 92 of file ezsubtreecache.php.

Referenced by cleanup(), and cleanupAll().

Constructor

Definition at line 22 of file ezsubtreecache.php.

Definition at line 143 of file ezsubtreecache.php.

static eZSubtreeCache::removeExpiryCacheFromDisk ( expiryCachePath) [static]

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

Definition at line 153 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 110 of file ezsubtreecache.php.

Referenced by cleanupCacheDir().


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