Latte\Engine::warmupCache PHP Method

warmupCache() public method

Compiles template to cache.
public warmupCache ( $name ) : void
return void
    public function warmupCache($name)
    {
        if (!$this->tempDirectory) {
            throw new \LogicException('Path to temporary directory is not set.');
        }
        $class = $this->getTemplateClass($name);
        if (!class_exists($class, FALSE)) {
            $this->loadTemplate($name);
        }
    }