eZ Community » Learn » eZ Publish » eZ Publish Cache In Details:...

eZ Publish Cache In Details: expiry.php and ezcache.php command

Wednesday 05 June 2013 2:46:43 pm

  • Currently 3 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

List of roles, ID and Tags by default

Table of ID / TAG of the ezcache.php command / impact of --purge

Tag IDs

 

content

ID associated tag(s) Meaning / impact
content content Globally expires the view cache
Update of the timestamp of ‘content-view-cache’ in {varDir}/cache/expiry.php
See chapter describing the impact of this expiry on performances
--purge ?
Physically removes this cache by recursive UNLINK of {varDir}/cache/content or DELETE SQL if an eZDB / eZDFS filehandler is used
classid content Expires a PHP key table doing the link between a textual and numeric class identifier : (“user” => “4“) in {VarDir}/cache/classidentifiers_{hash}.php
{VarDir}/cache/classattributeidentifiers_{hash}.php
Removes these 2 files
--purge ? useless, no additional impacts
sortkey content Globally expires the PHP key table of the datatypes linked to each datatype (“ezstring” => “string”) in {VarDir}/cache/sortkey_{hash}.php
Removes this file
--purge ? useless, no additional impacts
urlalias content Globally expires the ‘wildcard’ cache
Invalidates this cache by recursive UNLINK of {varDir}/wildcard, TOUCH if eZFS2 is used or UPDATE SQL eZDB / eZDFS are used
--purge ?
Physically removes this cache by recursive UNLINK of {varDir}/wildcard or DELETE SQL if an eZDB / eZDFS filehandler is used
rss_cache content Globally expires the ‘wildcard’ cache
Invalidates this cache by recursive UNLINK of {varDir}/wildcard, TOUCH if eZFS2 is used or UPDATE SQL eZDB / eZDFS are used
--purge ?
Physically removes this cache by recursive UNLINK of {varDir}/wildcard or DELETE SQL if an eZDB / eZDFS filehandler is used
rss_cache content Globally invalidates RSS cache
Invalidates this cache by recursive UNLINK of {varDir}/rss, TOUCH eZFS2 is used or UPDATE SQL if eZDB / eZDFS are used
--purge ?
Physically removes this cache by recursive UNLINK of {varDir}/rss or DELETE SQL if an eZDB / eZDFS filehandler is used
content_tree_menu content Allows the Back Office to cache the browser AJAX requests to the content browser
Updates the timestamp of the ‘content-tree-menu’ in {varDir}/cache/expiry.php
This value is available in templates with the {fetch('content','content_tree_menu_expiry')} function
--purge ? useless, no additional impacts
state_limitations content Expires the caching of a PHP key table describing the limitation on a group of status objects in  {VarDir}/cache/statelimitations_{hash}.php
Removes this file by UNLINK
--purge ? useless, no additional impacts
template-block template
content
Globally expires the template-block cache
Update the timestamp of ‘global-template-block-cache’ in {varDir}/cache/expiry.php
--purge ?
no update of expiry.php
Recursively removes {varDir}/cache/template-block
See chapter describing the impact of this expiry on performances
ezjscore-packer content
template
Globally expires the ezjscore cache (scripts & CSS)
Invalidates this cache by recursive UNLINK of the {varDir}/public, TOUCH if eZFS2 is used or UPDATE SQL if eZDB / eZDFS are used
--purge ?
Physically removes this cache by recursive UNLINK of {varDir}/public or DELETE SQL if eZDB / eZDFS filehandlers are used
 

template

ID associated tag(s) Meaning / impact
template template Globally expires the compiled version of templates
Physically removes this cache by recursive UNLINK of {varDir}/cache/template/
--purge ? useless, no additional impacts
template-block template
content
Globally expires the template-block cache
Update the timestamp of ‘global-template-block-cache’ in {varDir}/cache/expiry.php
--purge ?
no update of expiry.php
Recursively removes {varDir}/cache/template-block
See chapter describing the impact of this expiry on performances
template-override template Globally expires the cache of definition of overrides of templates
Invalidates this cache by recursive UNLINK of {varDir}/cache/override/ that contains the key tables that links the template overrides
Deletes the array in $GLOBALS
--purge ?
Same thing, but doesn’t remove the array in $GLOBALS, which seems to be a lack of consistency for a ‘purge-function’. Moreover, this removal is not helpful in any way, therefore this error doesn’t have an impact
texttoimage template Globally expires the texttoimage cache. Not tested, very marginal feature.
Invalidates this cache by recursive UNLINK of var/cache/texttoimage, TOUCH if eZFS2 is used.
--purge ?
Physically removes this cache by recursive UNLINK of var/cache/texttoimage.
The var/cache/texttoimage directory is defined by the parameter texttoimage.ini / [PathSettings] / CacheDir
design_base template Globally expires the design/ directories cache
Invalidates this cache by recursive UNLINK of the {varDir}/cache/designbase_* files, TOUCH if eZFS2 is used or UPDATE SQL if eZDB / eZDFS are used
--purge ? useless, no additional impacts
ezjscore-packer content
template
Globally expires the ezjscore cache (scripts & CSS)
Invalidates this cache by recursive UNLINK of the {varDir}/public, TOUCH if eZFS2 is used or UPDATE SQL if eZDB / eZDFS are used
--purge ?
Physically removes this cache by recursive UNLINK of {varDir}/public or DELETE SQL if eZDB / eZDFS filehandlers are used
 

ini

ID associated tag(s) Meaning / impact
global_ini ini Globally expires the INI cache
Invalidates this cache by recursive UNLINK of var/cache/ini/ that contains the INI caches (PHP key arrays), whatever the filehandler is
--purge ? useless, no additional impacts
active_extensions ini Globally expires the active extensions per site_access cache
Invalidates this cache by recursive UNLINK of the var/cache/active_extensions_{hash}.php files
Update of the timestamp of ‘active-extensions-cache’ in {varDir}/cache/expiry.php
--purge ? useless, no additional impacts
ini ini Doesn’t do anything, or at least tries to remove recursively a directory that doesn’t exist (for the record : {varDir}/ini). The ‘var/cache/ini/’ directory is hard writen in lib/ezutils/classes/ezini.php
Use global_ini to remove the INI cache
 

user

ID associated tag(s) Meaning / impact
user_info_cache user Globally expires the cache of user rules 
Update of the timestamp of ‘user-info-cache’ in    {varDir}/cache/expiry.php
--purge ?
Physically removes this cache by recursive UNLINK of {varDir}/user-info or DELETE SQL if eZDB / eZDFS filehandlers are used
 

i18n

ID associated tag(s) Meaning / impact
translation i18n Globally expires the translation cache
Update of the timestamp of ‘ts-translation-cache’ in    {varDir}/cache/expiry.php
--purge ?
Physically removes this cache by recursive UNLINK of  {varDir}/translation
chartrans i18n Globally expires the character transformation cache (for example from uppercase to lowercase)
Physically removes this cache by recursive UNLINK of {varDir}/trans, whatever the filehandler is
--purge ? useless, no additional impacts
 

codepage

ID associated tag(s) Meaning / impact
codepage codepage Globally expires the codepages transformation cache (links between encodings)
Physically removes this cache by recursive UNLINK of {varDir}/codepages, whatever the filehandler is
--purge ? useless, no additional impacts
 

image

ID associated tag(s) Meaning / impact
imagealias image Globally expires the image aliases cache
Update of the timestamp of the ‘image-manager-alias’ in {varDir}/cache/expiry.php
--purge ?
Adds to the previous operation the removal in database of the ‘alias’ in all the attributes of the ‘ezimage’ datatype
 

rest

ID associated tag(s) Meaning / impact
rest rest Globally expires the REST API cache
Invalidates this cache by recursive UNLINK of the {varDir}/rest, TOUCH if eZFS2 is used or UPDATE SQL if eZDB / eZDFS are used
--purge ?
Physically removes this cache by recursive UNLINK of {varDir}/rest or DELETE SQL if eZDB / eZDFS filehandlers are used
rest-routes rest Globally expires the APC cache of the routes of the REST API ( experimental, not tested )
Update of the timestamp of ‘ezpRestRouteApcCacheKey’ in {varDir}/cache/expiry.php

 

 

 
36 542 Users on board!

Tutorial menu

Printable

Printer Friendly version of the full article on one page with plain styles

Author(s)

Proudly Developed with from