protected function setCache()
    {
        if ($this->cache) {
            $cacheFile = $this->getCacheFile();
            file_put_contents($cacheFile, $this->templateOutput);
        }
    }
protected function setCache()
    {
        if ($this->cache) {
            $cacheFile = $this->getCacheFile();
            file_put_contents($cacheFile, $this->templateOutput);
        }
    }
protected function setCache ( ) { if ( $ this -> cache ) { $ cacheFile = $ this -> getCacheFile ( ) ; file_put_contents ( $ cacheFile , $ this -> templateOutput ) ; } }
Cache the template if applicable.

@return void
Cache the template if applicable .