Advertisement
manchumahara

For Joyanta Sir(Joomla component caching)

Dec 3rd, 2012
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.71 KB | None | 0 0
  1. $mainframe =& JFactory::getApplication();
  2.                  $caching = $this->params->get('cachetimeline', 1);
  3.                  if($caching){
  4.                      //if caching enabled from
  5.                      $caching = $mainframe->getCfg('caching');
  6.                  }
  7.  
  8.                  //$caching = 1;  //enable this only test purpose.
  9.  
  10.                  $cache =& JFactory::getCache('com_mysocialtimeline');
  11.                  $cache->setCaching($caching);
  12.                  $callback = array($timelinehelper, 'getFeed');
  13.                  $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