Quote:
Originally Posted by Erwin
I expanded the hack so members could choose different newsfeeds or add their own... however, my site is too busy for this hack - the constant fopen of RSS feeds killed my server when we reach our peak over 1,000 users online.  So I've had to remove the hack. Some kind of cache which updates hourly or so would be ideal.
|
OMG! Did I just read that correctly? The Doctor wrote an RSS client with no caching and using fopen? Have you not read the RFC?
I'm appalled! I have been ranting for months that you must not use fopen,open or file_get_contents for RSS!
First off there is an RFC to follow with standards.
Secondly, you are not supposed to hit a feed for every hit at your site.
I'm not counting, you SHOULD have caching and cache for at least one hour on feed hits.
You can get RSS agregators for free, there is no need to re-invent the wheel!
I will not release my code, however this stuff is internet pollution and should not be used in any way shape or form.