Esempio n. 1
0
 function process($params, $module)
 {
     $enable_cache = $params->get('cache', 1);
     $cachetime = $params->get('cache_time', 0);
     //$this->module_name = $module->module;
     if ($enable_cache == 1) {
         $conf =& JFactory::getConfig();
         $cache =& JFactory::getCache($module->module);
         $cache->setLifeTime($params->get('cache_time', $conf->getValue('config.cachetime') * 60));
         $cache->setCaching(true);
         //$cache->setCacheValidation(true);
         $items = $cache->get(array('modContentSliderHelper', 'getList'), array($params, $module));
     } else {
         $items = modContentSliderHelper::getList($params, $module);
     }
     return $items;
 }