Table of Contents

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 Laminas cache objects and/or directory locations for several named caches. Each of these caches is used slightly differently.

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.

Consumers of the Object Cache

As noted above, VuFind's object cache is the best general-purpose place for storing data, as long as you use cache keys that do not conflict with other VuFind components. Here is a list of current keys reserved in the object cache (current as of VuFind 3.0):