public function clearTestingTemplates() { foreach (array_keys($this->templates) as $file_name) { $compiled = $this->config->getCacheDir() . '/' . $file_name . '.php'; if (file_exists($compiled)) { unlink($compiled); } } clearstatcache(); $this->templates = array(); }
public function locateCompiledTemplate($file_name) { return $this->config->getCacheDir() . '/' . md5($file_name) . '.php'; }