About Features Downloads Getting Started Documentation Events Support GitHub

Site Tools


development:architecture:caching

This is an old revision of the document!


Caching

VuFind uses caching in several places to improve performance.

The Cache Manager and Its Caches

VuFind has a 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 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 cover loader to store downloaded image files.
  • language - stores parsed i18n language files; set up as part of 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 SearchSpecsReader.
development/architecture/caching.1462825397.txt.gz · Last modified: 2016/05/09 20:23 by demiankatz