SproutCMS

This is the code documentation for the SproutCMS project

source of /config/cache.php

  1. <?php
  2. /**
  3.  * @package Cache
  4.  *
  5.  * Cache settings, defined as arrays, or "groups". If no group name is
  6.  * used when loading the cache library, the group named "default" will be used.
  7.  *
  8.  * Each group can be used independently, and multiple groups can be used at once.
  9.  *
  10.  * Group Options:
  11.  * driver - Cache backend driver. Kohana comes with file, database, and memcache drivers.
  12.  * > File cache is fast and reliable, but requires many filesystem lookups.
  13.  * > Database cache can be used to cache items remotely, but is slower.
  14.  * > Memcache is very high performance, but prevents cache tags from being used.
  15.  *
  16.  * params - Driver parameters, specific to each driver.
  17.  *
  18.  * lifetime - Default lifetime of caches in seconds. By default caches are stored for
  19.  * thirty minutes. Specific lifetime can also be set when creating a new cache.
  20.  * Setting this to 0 will never automatically delete caches.
  21.  *
  22.  * requests - Average number of cache requests that will processed before all expired
  23.  * caches are deleted. This is commonly referred to as "garbage collection".
  24.  * Setting this to 0 or a negative number will disable automatic garbage collection.
  25.  */
  26. $config['default'] = array
  27. (
  28. 'driver' => 'Apc',
  29. 'lifetime' => 1800,
  30. 'requests' => 1000
  31. );
  32.  
  33. $config['enabled'] = false;
  34.  
  35.