Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jul 2006
Posts: 96
A
member
member
A Offline
Joined: Jul 2006
Posts: 96
All my RSS feeds off individual forums are not updating. However if I go into CP and click at the bottom they are all updated.

How can I get cron to run this it's obviously broken as far as automatic.

Thanks!

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Any time a post is made in a particular forum, that forum's RSS feed should rebuild as long as the cache time has been exceeded. What do you have the cache time set for, and are these single forum RSS feeds or multiple forum?

Joined: Jul 2006
Posts: 96
A
member
member
A Offline
Joined: Jul 2006
Posts: 96
Hi Rick,

it's about 10 single forum feeds. It's set to 60 minutes and definately set to on. The posts are also being made way after 60 minutes.

One forum in particular has GPS data it's updated once or twice daily.

I have tested this on about 7 forums. They all do immediately update if I just click ok to the list.

They are not high posting traffic forums I have RSS feeds on, maybe 2 to 3 new topics per 24h so it's definately exceeding the 60 min.

Also the RSS feeds are set to posts as well as topics, but it's irrelivant as in this case they are all new topics.

It's puzzling as I thought I had a cache problem on my joomla sites using the data, but confirmed the feeds are just stale.

Thanks!

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Hmm, I know we do have a few issues with the current triggers to rebuild cache and rss feeds as they aren't extremely reliable on their runtime on all setups. That's the main reason we're redoing our scheduler v8.

What you can do for now, is if you have the ability to run cron jobs and can run PHP from the command line, you could setup a cron to run a script like the below every 10 minutes or so to have it manually rebuild the rss, just like hitting the clear cache button in the control panel (which you said works). Cron job would be something like:

*/10 * * * * php /path/to/the/script/below

PHP Code


<?php

// Change the path below to your ubb libs/ directory
chdir("/path/to/libs");
require("admin.inc.php");

generate_rss_feeds(1);

?>



Joined: Jul 2006
Posts: 96
A
member
member
A Offline
Joined: Jul 2006
Posts: 96
Hi Rick,

Got it working!

I assume there are different tags generate different things?

Any chance of a list I can cron some stuff?

Thanks!


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Who's Online Now
0 members (), 795 guests, and 149 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240505)