About Features Downloads Getting Started Documentation Events Support GitHub

Love VuFind®? Consider becoming a financial supporter. Your support helps build a better VuFind®!

Site Tools


Warning: This page has not been updated in over over a year and may be outdated or deprecated.
development:architecture:caching

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
development:architecture:caching [2016/05/09 20:13] – created demiankatzdevelopment:architecture:caching [2016/05/09 20:24] demiankatz
Line 2: Line 2:
  
 VuFind uses caching in several places to improve performance. VuFind uses caching in several places to improve performance.
 +
 +===== The Cache Manager and Its Caches =====
 +
 +VuFind has a [[https://github.com/vufind-org/vufind/blob/master/module/VuFind/src/VuFind/Cache/Manager.php|VuFind\Cache\Manager]] class which pre-configures Zend Framework cache objects and/or directory locations for several named caches. Each of these caches is used slightly differently.
 +
 +  * config - stores top-level Zend Framework configurations; manually set up in [[https://github.com/vufind-org/vufind/blob/master/config/application.config.php|application.config.php]] but included in the cache manager to assist with automated cache clearing in the admin panel.
 +  * cover - stores cover images; used by the [[https://github.com/vufind-org/vufind/blob/master/module/VuFind/src/VuFind/Cover/Loader.php|cover loader]] to store downloaded image files.
 +  * language - stores parsed i18n language files; set up as part of [[https://github.com/vufind-org/vufind/blob/v3.0/module/VuFind/src/VuFind/Service/Factory.php#L883|i18n initialization]]. 
 +  * object - stores serialized PHP objects; this is the most general-purpose cache in VuFind, shared by several different consumers. If you want to cache data of your own, this is a good place to put it, as long as you name your cache keys with appropriate uniqueness.
 +  * searchspecs - stores parsed/processed YAML search specification configurations; used by the [[https://github.com/vufind-org/vufind/blob/master/module/VuFind/src/VuFind/Config/SearchSpecsReader.php|SearchSpecsReader]].
 +
 +===== Cache Locations =====
 +
 +The location of the cache may vary depending on various environment variables, your VuFind version, and whether you are running code through Apache or from the command line. See VuFind\Cache\Manager::getCacheDir for the rules that apply in your particular version of VuFind.
 ---- struct data ---- ---- struct data ----
 ---- ----
  
development/architecture/caching.txt · Last modified: 2020/09/22 13:54 by demiankatz