Changeset 2394
- Timestamp:
- 04/01/2008 05:08:13 AM (6 months ago)
- Location:
- trunk/system
- Files:
-
- 2 modified
-
config/cache.php (modified) (1 diff)
-
libraries/Cache.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/config/cache.php
r2361 r2394 22 22 * requests - Average number of cache requests that will processed before all expired 23 23 * caches are deleted. This is commonly referred to as "garbage collection". 24 * Setting this to a negative number will disable automatic garbage collection.24 * Setting this to 0 or a negative number will disable automatic garbage collection. 25 25 */ 26 26 $config['default'] = array -
trunk/system/libraries/Cache.php
r2377 r2394 82 82 if (self::$loaded !== TRUE) 83 83 { 84 if (mt_rand(0, (int) $this->config['requests']) === 1) 84 $this->config['requests'] = (int) $this->config['requests']; 85 86 if ($this->config['requests'] > 0 AND mt_rand(1, $this->config['requests']) === 1) 85 87 { 86 88 // Do garbage collection
