Changeset 6215
- Timestamp:
- 11/30/07 01:12:09 (11 months ago)
- Files:
-
- trunk/lib/cache/sfXCacheCache.class.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/cache/sfXCacheCache.class.php
r4586 r6215 4 4 * This file is part of the symfony package. 5 5 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> 6 * 6 * 7 7 * For the full copyright and license information, please view the LICENSE 8 8 * file that was distributed with this source code. … … 63 63 public function set($key, $data, $lifetime = null) 64 64 { 65 return xcache_set($this->prefix.$key, str_pad(time() + $lifetime, 12, 0, STR_PAD_LEFT).$data, $this->getLifetime($lifetime)); 65 $lifetime = $this->getLifetime($lifetime); 66 return xcache_set($this->prefix.$key, str_pad(time() + $lifetime, 12, 0, STR_PAD_LEFT).$data, $lifetime); 66 67 } 67 68 … … 79 80 public function clean($mode = sfCache::ALL) 80 81 { 81 if ( !sfCache::ALL)82 if ($mode != sfCache::ALL) 82 83 { 83 84 return true;