The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: RSS Feeds Taking an Hour to Update?

RSS Feeds Taking an Hour to Update? 9 years 6 months ago #16238

  • Scott Archer
  • Scott Archer's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Hi, I am using the RSS feed feature, however the feeds don't seem to be updating in live time. Is there a cache setting or something else that could be causing this. It's not the feed reader, the actual RSS feed page isn't updating even after a hour that new comments are made.

Re: RSS Feeds Taking an Hour to Update? 9 years 6 months ago #16273

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Yes, the rss feed is cached. And it is cached for 1h.
Go to administrator/components/com_comment/plugin/com_content/com_content.class.php -> find the createFeed function and then find the line:
$rss->useCached("RSS2.0", $folderPath . DS . 'joscfeed' . $contentid . '.xml');

change it to
$rss->useCached("RSS2.0", $folderPath . DS . 'joscfeed' . $contentid . '.xml', 600);

this will change the cache time to 10mins instead of 60. I don't advise you to remove the cache, as the creating of the feed is resource intensive. If you have a lot of users subscribed to the feed this can slow down the page generation.

Kind regards,
  • Page:
  • 1
Time to create page: 0.130 seconds