Example #1
0
  protected function _QueryCache($name)
  {
    if (!$this->cache_backend)
      return NULL;

    $tpl_path = $this->_TemplatePath($name);
    $data = $this->cache_backend->GetTemplateDataForName($name, filemtime($tpl_path));
    if (!$data)
      return NULL;

    return Template::NewWithCompiledData($name, $data);
  }