Configuration

Configuration keys for the Solar_Cache_Adapter_File class.

active

  • (bool) Whether or not the cache should be active at instantiation.

  • Default: true

life

  • (int) The lifetime of each cache entry in seconds.

  • Default: 0

prefix

  • (string) A prefix to place in front of every cache entry key; e.g., use this to deconflict between identical cache keys in caches shared among different domains or environments.

  • Default: null

path

  • (string) The directory where cache files are located; should be readable and writable by the script process, usually the web server process. Default is '/Solar_Cache_File' in the system temporary directory. Will be created if it does not already exist. Supports streams, so you may specify (e.g.) 'http://cache-server/' as the path.

  • Default: null

mode

  • (int) If the cache path does not exist, when it is created, use this octal permission mode. Default is 0740 (user read/write/exec, group read, others excluded).

  • Default: 480

context

  • (array|resource) A stream context resource, or an array to pass to stream_create_context(). When empty, no context is used. Default null.

  • Default: null

hash

  • (bool) Whether or not to hash the cache entry filenames.

  • Default: true



Local