| 5 | | * Cache backend driver. Kohana comes with file, database, and memcache drivers. |
| 6 | | * - File cache is fast and reliable, but requires many filesystem lookups. |
| 7 | | * - Database cache can be used to cache items remotely, but is slower. |
| 8 | | * - Memcache is very high performance, but prevents cache tags from being used. |
| | 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 to of caches, 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 a negative number will disable automatic garbage collection. |
| 10 | | $config['driver'] = 'file'; |
| 11 | | |
| 12 | | /** |
| 13 | | * Driver parameters, specific to each driver. |
| 14 | | */ |
| 15 | | $config['params'] = 'application/cache'; |
| 16 | | |
| 17 | | /** |
| 18 | | * Default lifetime to of caches, seconds. By default, caches are stored for |
| 19 | | * thirty minutes. Specific lifetime can also be set when creating a new cache. |
| 20 | | * |
| 21 | | * Setting this to 0 will never automatically delete caches. |
| 22 | | */ |
| 23 | | $config['lifetime'] = 1800; |
| 24 | | |
| 25 | | /** |
| 26 | | * Average number of cache requests that will processed before all expired |
| 27 | | * caches are deleted. This is commonly referred to as "garbage collection". |
| 28 | | * Setting this to a negative number will disable automatic garbage collection. |
| 29 | | */ |
| 30 | | $config['requests'] = 1000; |
| | 26 | $config['default'] = array |
| | 27 | ( |
| | 28 | 'driver' => 'file', |
| | 29 | 'params' => 'application/cache', |
| | 30 | 'lifetime' => 1800, |
| | 31 | 'requests' => 1000 |
| | 32 | ); |