SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/config/cache.php

  1. <?php
  2. /*
  3.  * kate: tab-width 4; indent-width 4; space-indent on; word-wrap off; word-wrap-column 120;
  4.  * :tabSize=4:indentSize=4:noTabs=true:wrap=false:maxLineLen=120:mode=php:
  5.  *
  6.  * Copyright (C) 2016 Karmabunny Pty Ltd.
  7.  *
  8.  * This file is a part of SproutCMS.
  9.  *
  10.  * SproutCMS is free software: you can redistribute it and/or modify it under the terms
  11.  * of the GNU General Public License as published by the Free Software Foundation, either
  12.  * version 2 of the License, or (at your option) any later version.
  13.  *
  14.  * For more information, visit <http://getsproutcms.com>.
  15.  */
  16.  
  17. /**
  18.  * @package Cache
  19.  *
  20.  * Cache settings, defined as arrays, or "groups". If no group name is
  21.  * used when loading the cache library, the group named "default" will be used.
  22.  *
  23.  * Each group can be used independently, and multiple groups can be used at once.
  24.  *
  25.  * Group Options:
  26.  * driver - Cache backend driver. Kohana comes with file, database, and memcache drivers.
  27.  * > File cache is fast and reliable, but requires many filesystem lookups.
  28.  * > Database cache can be used to cache items remotely, but is slower.
  29.  * > Memcache is very high performance, but prevents cache tags from being used.
  30.  *
  31.  * params - Driver parameters, specific to each driver.
  32.  *
  33.  * lifetime - Default lifetime of caches in seconds. By default caches are stored for
  34.  * thirty minutes. Specific lifetime can also be set when creating a new cache.
  35.  * Setting this to 0 will never automatically delete caches.
  36.  *
  37.  * requests - Average number of cache requests that will processed before all expired
  38.  * caches are deleted. This is commonly referred to as "garbage collection".
  39.  * Setting this to 0 or a negative number will disable automatic garbage collection.
  40.  */
  41. $config['default'] = array
  42. (
  43. 'driver' => 'file',
  44. 'params' => APPPATH.'cache',
  45. 'lifetime' => 1800,
  46. 'requests' => 1000
  47. );
  48.