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