Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mainframe =& JFactory::getApplication();
- $caching = $this->params->get('cachetimeline', 1);
- if($caching){
- //if caching enabled from
- $caching = $mainframe->getCfg('caching');
- }
- //$caching = 1; //enable this only test purpose.
- $cache =& JFactory::getCache('com_mysocialtimeline');
- $cache->setCaching($caching);
- $callback = array($timelinehelper, 'getFeed');
- $output = $cache->call($callback, $socialSitesName, $com_name, $perFeedItems, $totalFeedItems, $feedTimeout,$timeline, $networkWeights,$sortKey,$desc, $this->params, $menu->id);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement