You are here

function pCache::GetFromCache in Visitors 7.0

Same name and namespace in other branches
  1. 8 pchart/pCache.inc \pCache::GetFromCache()
  2. 7.2 pChart/class/pCache.class.php \pCache::getFromCache()
  3. 7 pChart/class/pCache.class.php \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;
  }
}