function fetchMicro(&$page = NULL) { $mode = 'recent'; $title = 'Recent Tweets about ' . SITE_TOPIC; $cacheName = 'home_microRecent'; if ($this->templateObj->checkCache($cacheName, 10)) { // still current, get from cache $code = $this->templateObj->fetchCache($cacheName); } else { require_once PATH_FACEBOOK . '/classes/micro.class.php'; $mObj = new micro($this->db, $this->templateObj); $code = ''; $code .= '<div class="panel_1">'; $code .= $page->buildPanelBar($title, '<span class="pipe">|</span><a href="?p=tweets" onclick="switchPage(\'micro\');return false;">Visit our ' . SITE_TOPIC . ' tweet summary</a>'); $code .= '<div id="storyList">'; $code .= $mObj->homeList(); $code .= '</div><!-- end storyList -->'; $code .= '</div><!--end "panel_1"-->'; $this->templateObj->cacheContent($cacheName, $code); } return $code; }