You are here

function pCache::GetFromCache in Visitors 8

Same name and namespace in other branches
  1. 7.2 pChart/class/pCache.class.php \pCache::getFromCache()
  2. 7 pChart/class/pCache.class.php \pCache::getFromCache()
  3. 7.0 pchart/pCache.inc \pCache::GetFromCache()

File

pchart/pCache.inc, line 92

Class

pCache

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;
  }
}