Just a quick Question about Atom and RSS updating

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
AGISB
Forum Contributor
Posts: 422
Joined: Fri Jul 09, 2004 1:23 am

Just a quick Question about Atom and RSS updating

Post by AGISB »

I was wondering what the best way is to keep the atom and rss feeds updated. I need it to update once a new article is updated. I can't do it on creation as articles can be predated and are published delayed. So I was thinking of a couple of way to do it.

1. Using Contab to update it every so often
2. Running all .xml documents thru php and create the feeds on the fly
3. Using my regular php page calls to check if the feed is current and update if needed.

I am currently prefering #2 as crontab limits my prog to where crontab is available. I am not sure however how much burden the creation of on-the-fly feeds put on the server as I have no clue how often such a feed is called etc.

Do you guys have an idea what the best way is to do this?
User avatar
mikemike
Forum Contributor
Posts: 355
Joined: Sun May 24, 2009 5:37 pm
Location: Chester, UK

Re: Just a quick Question about Atom and RSS updating

Post by mikemike »

Just create them on-the-fly. They're normally smaller in size than the average webpage (assuming you don't list 100 posts per feed), so it wouldn't put any real burden on your server.
Post Reply