function pCache::GetFromCache in Visitors 8
Same name and namespace in other branches
- 7.2 pChart/class/pCache.class.php \pCache::getFromCache()
 - 7 pChart/class/pCache.class.php \pCache::getFromCache()
 - 7.0 pchart/pCache.inc \pCache::GetFromCache()
 
File
- pchart/
pCache.inc, line 92  
Class
Code
function GetFromCache($ID, $Data) {
  $Hash = $this
    ->GetHash($ID, $Data);
  if ($this
    ->IsInCache("", "", $Hash)) {
    $FileName = $this->CacheFolder . $Hash;
    header('Content-type: image/png');
    @readfile($FileName);
    exit;
  }
}