getModel('browse'); $cache = & JFactory::getCache('com_openaire', 'callback'); $conf =& JFactory::getConfig(); $cacheactive = $conf->getValue('config.caching'); $cache->setCaching(1); //enable caching $stats = $cache->call(array($model, 'getBrowseStatistics')); $cache->setCaching($cacheactive); $this->assignRef('stats', $stats); parent::display($tpl); } } ?>