You are here

function pCache::flush in Visitors 7.2

Same name and namespace in other branches
  1. 7 pChart/class/pCache.class.php \pCache::flush()

File

pChart/class/pCache.class.php, line 39

Class

pCache

Code

function flush() {
  if (file_exists($this->CacheFolder . "/" . $this->CacheIndex)) {
    unlink($this->CacheFolder . "/" . $this->CacheIndex);
    touch($this->CacheFolder . "/" . $this->CacheIndex);
  }
  if (file_exists($this->CacheFolder . "/" . $this->CacheDB)) {
    unlink($this->CacheFolder . "/" . $this->CacheDB);
    touch($this->CacheFolder . "/" . $this->CacheDB);
  }
}