addCustomTag(''); $model = &$this->getModel('statistics'); $thriftResult = $model->getPublicationStatistics(); $this->assignRef('stats', $thriftResult); $this->assignRef('searchMenuId', $model->getSearchMenuId()); parent::display($tpl); } private function getStats() { $model = &$this->getModel('statistics'); $cache = & JFactory::getCache('com_openaire', 'callback'); $conf =& JFactory::getConfig(); $cacheactive = $conf->getValue('config.caching'); $cache->setCaching(1); //enable caching $stats = $cache->call(array($model, 'getPublicationStatistics')); $cache->setCaching($cacheactive); } } ?>