function display($template = null, $cache_id = null, $complile_id = null) { if ($template == null) { global $php; $template = $php->env['mvc']['controller'] . '_' . $php->env['mvc']['view'] . '.html'; } if ($this->if_pagecache) { $pagecache = new PageCache($this->cache_life); if (!$pagecache->isCached()) { $pagecache->create(parent::fetch($template, $cache_id, $complile_id)); } $pagecache->load(); } else { parent::display($template, $cache_id, $complile_id); } }