Author Topic: Double cache for RSS  (Read 1667 times)


  • Beginner
  • *
  • Posts: 1
Double cache for RSS
« on: January 31, 2014, 13:49:10 PM »
Virtuemart Admin Panel shows two RSS feeds (Extensions Feed and VirtueMartRss Feed) using SimplePie library. SimplePie use cache by default but virtuemart also use Joomla cache system.

On /administrator/components/com_virtuemart/helpers/shopfunciotns.php, line 794, getCPsRssFeed() uses Joomla caché system:

Code: [Select]
static public function getCPsRssFeed($rssUrl,$max) {

$cache_time=86400*3; // 3days
$cache = JFactory::getCache ('com_virtuemart_rss');
$cached = $cache->getCaching();
$cache->setCaching (1);
$feeds = $cache->call (array('ShopFunctions', 'getRssFeed'), $rssUrl, $max);
$cache->setCaching ($cached);
return $feeds;

And on the same file, line 830, SimplePie are used (with default params, cache enabled):

Code: [Select]
static public function getRssFeed ($rssURL,$max) {
$rssFeed = new SimplePie($rssURL);

I think above code should be replaced by this one:

Code: [Select]
static public function getRssFeed ($rssURL,$max) {
$rssFeed = new SimplePie();

  • Joomla version: Joomla! 2.5.16
  • VirtueMart version: 2.0.26d


  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10626
  • VM4.0.232 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 4 on joomla 3
Re: Double cache for RSS
« Reply #1 on: January 31, 2014, 21:13:00 PM »
This are different caches. We use the cache too automatically reload teh stuff after 3 days. We dont want to delay the normal work in the BE.
Should I fix your bug, please support the VirtueMart project and become a member
Extensions approved by the core team: