You are here

function pCache::ClearCache in Visitors 8

Same name and namespace in other branches
  1. 7.0 pchart/pCache.inc \pCache::ClearCache()

File

pchart/pCache.inc, line 47

Class

pCache

Code

function ClearCache() {
  if ($handle = opendir($this->CacheFolder)) {
    while (false !== ($file = readdir($handle))) {
      if ($file != "." && $file != "..") {
        unlink($this->CacheFolder . $file);
      }
    }
    closedir($handle);
  }
}