You are here

function pCache::WriteToCache in Visitors 8

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

File

pchart/pCache.inc, line 73

Class

pCache

Code

function WriteToCache($ID, $Data, $Picture) {
  $Hash = $this
    ->GetHash($ID, $Data);
  $FileName = $this->CacheFolder . $Hash;
  imagepng($Picture->Picture, $FileName);
}