You are here

function pCache::ClearCache in Visitors 7.0

Same name and namespace in other branches
  1. 8 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);
  }
}