You are here

function pCache::WriteToCache in Visitors 7.0

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