function create($route) { $page = new Page($route); # start output buffer ob_start(); echo $page->parse_template(); # if cache folder is writable, write to it if(is_writable('./app/_cache')) $this->write_cache(); else if ($this->is_commentable()) echo "\n".$this->comment_tags['begin'].' Stacey('.Stacey::$version.'). '.$this->comment_tags['end']; # end buffer ob_end_flush(); return ''; }
function create($route) { # remove any unused caches for this route $this->delete_old_caches(); $page = new Page($route); # start output buffer ob_start(); echo $page->parse_template(); # if cache folder is writable, write to it if (is_writable(Config::$cache_folder . '/pages') && !$page->data['bypass_cache']) { $this->write_cache(); } # end buffer ob_end_flush(); return ''; }
function create($route) { $page = new Page($route); # start output buffer ob_start(); echo $page->parse_template(); # if cache folder is writable, write to it if (is_dir(Config::$cache_folder) && is_writable(Config::$cache_folder) && !$page->data['@bypass_cache']) { $this->write_cache(); } else { if ($this->is_commentable()) { echo "\n" . $this->comment_tags['begin'] . ' Cindy(' . Stacey::$version . '). ' . $this->comment_tags['end']; } } # end buffer ob_end_flush(); return ''; }