Development

Changeset 5308

You must first sign up to be able to contribute.

Changeset 5308

Show
Ignore:
Timestamp:
09/29/07 08:51:43 (6 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