Development

Changeset 6215

You must first sign up to be able to contribute.

Changeset 6215

Show
Ignore:
Timestamp:
11/30/07 01:12:09 (11 months ago)
Author:
dwhittle
Message:

fixed typo in sfXCacheCache::clean + getTimeout

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/cache/sfXCacheCache.class.php

    r4586 r6215  
    44 * This file is part of the symfony package. 
    55 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> 
    6  *  
     6 * 
    77 * For the full copyright and license information, please view the LICENSE 
    88 * file that was distributed with this source code. 
     
    6363  public function set($key, $data, $lifetime = null) 
    6464  { 
    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); 
    6667  } 
    6768 
     
    7980  public function clean($mode = sfCache::ALL) 
    8081  { 
    81     if (!sfCache::ALL) 
     82    if ($mode != sfCache::ALL) 
    8283    { 
    8384      return true;