public function cache($key, $value)
    {
        $fileName = $this->getCacheFilename($key);

        $this->log(
            Mustache_Logger::DEBUG,
            'Writing to template cache: "{fileName}"',
            array('fileName' => $fileName)
        );

        $this->writeFile($fileName, $value);
        $this->load($key);
    }
public function cache($key, $value)
    {
        $fileName = $this->getCacheFilename($key);

        $this->log(
            Mustache_Logger::DEBUG,
            'Writing to template cache: "{fileName}"',
            array('fileName' => $fileName)
        );

        $this->writeFile($fileName, $value);
        $this->load($key);
    }
public function cache ( $ key , $ value ) { $ fileName = $ this -> getCacheFilename ( $ key ) ; $ this -> log ( Mustache_Logger :: DEBUG , 'Writing to template cache: "{fileName}"' , array ( 'fileName' => $ fileName ) ) ; $ this -> writeFile ( $ fileName , $ value ) ; $ this -> load ( $ key ) ; }
Cache and load the compiled class.

@param string $key
@param string $value
Cache and load the compiled class .