Merge branch 'maint/7.0'
[ninja.git] / system / config / cache.php
blobccd3da4d46cff7b8deed252dc1583b941cb85a3d
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
2 /**
3 * @package Cache
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.
8 * Each group can be used independently, and multiple groups can be used at once.
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.
16 * params - Driver parameters, specific to each driver.
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.
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.
26 $config['default'] = array
28 'driver' => 'file',
29 'params' => APPPATH.'cache',
30 'lifetime' => 1800,
31 'requests' => 1000