Development

Changeset 5308

You must first sign up to be able to contribute.

Changeset 5308

Show
Ignore:
Timestamp:
09/29/07 08:51:43 (2 years ago)
Author:
fabien
Message:

fixed sfFileCache::clean() when dir does not exist (closes #2294)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/cache/sfFileCache.class.php

    r3541 r5308  
    339339    $namespace = str_replace('/', DIRECTORY_SEPARATOR, $namespace); 
    340340 
    341     return $this->cleanDir($this->cacheDir.DIRECTORY_SEPARATOR.$namespace, $mode); 
     341    $dir = $this->cacheDir.DIRECTORY_SEPARATOR.$namespace; 
     342    if (!file_exists($dir)) 
     343    { 
     344      return true; 
     345    } 
     346 
     347    return $this->cleanDir($dir, $mode); 
    342348  } 
    343349 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.