I was looking for a solution on caching RSS feeds in PHP. I was planning to do the parsing with Magpie RSS parser (http://magpierss.sourceforge.net/). But then how could I go about caching feeds (in case sometimes feed provider won't let me read the same feed, etc.)?
Regards.
Voila caching.
fetch a list of feeds say, every hour using wget.
Write them into a folder called /cache
Repeat.
This would work fine as long as a) hourly is good enough b) hourly is good enough for all feeds and c) you have access to cron
Gotta wonder why you are fetching and serving the feeds unless you are doing some post-fetch analysis on them though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With