Reply LinkBack Thread Tools Search this Thread
Old 14-07-2006, 07:47   #1 (permalink)
FakeFrench
Fool
 
FakeFrench's Avatar
 
Join Date: Jun 2005
Location: Finsbury Park, London
Posts: 66
anyone know how to generate rss per profile on profile site?

Hey champs!

Am working on this project at the moment which needs to generate individual rss feeds for each profile, each contains a list of items. I have managed to create 1 rss feed ok, but wondered the best way of going about doing all these multiple ones?! I have tried google but just wondered if anyone has done this before / has any suggestions?! I was thinking of creating an rss folder and simply creating an rss feed for each profile as they add items to their list. Also is the best way to update an rss feed using a cron tab or simply by generating the new xml file each time an item is added to the db?! And finally does anyone know a tutorial on how to generate an image from this feed ala last.fm?!

Thanks!
  Reply With Quote
Old 14-07-2006, 08:08   #2 (permalink)
cam
vague™
 
cam's Avatar
 
Join Date: Mar 2004
Location: Glasgow
Posts: 5,337
unless the information you're displaying is going to change often and invalidate the query cache, do it dynamic - e.g. url.com/profile/user_name/rss would hit the database and get all the latest info you want in your feed.
__________________
Random goodness at The Blog

  Reply With Quote
Old 14-07-2006, 08:53   #3 (permalink)
FakeFrench
Fool
 
FakeFrench's Avatar
 
Join Date: Jun 2005
Location: Finsbury Park, London
Posts: 66
Quote:
Originally Posted by cam
unless the information you're displaying is going to change often and invalidate the query cache, do it dynamic - e.g. url.com/profile/user_name/rss would hit the database and get all the latest info you want in your feed.

Ah so that way it could use 1 php script to dynamically generate the appropriate xml file for any user that looks at it?! So there would be no redundant xml files lying around?! Good idea! But can this cause problems if its being accessed by lots of people simultaneously?!
  Reply With Quote
Old 14-07-2006, 10:05   #4 (permalink)
cam
vague™
 
cam's Avatar
 
Join Date: Mar 2004
Location: Glasgow
Posts: 5,337
Quote:
Originally Posted by FakeFrench
Ah so that way it could use 1 php script to dynamically generate the appropriate xml file for any user that looks at it?! So there would be no redundant xml files lying around?! Good idea! But can this cause problems if its being accessed by lots of people simultaneously?!

Technically, yes - especially if the query cache (DB cache) is being cleared.
__________________
Random goodness at The Blog

  Reply With Quote
Old 14-07-2006, 11:27   #5 (permalink)
FakeFrench
Fool
 
FakeFrench's Avatar
 
Join Date: Jun 2005
Location: Finsbury Park, London
Posts: 66
Quote:
Originally Posted by cam
Technically, yes - especially if the query cache (DB cache) is being cleared.

So if it had say 500 profiles with active rss feeds would you say its a bit risky to do it that way?! would generating individual xml files be any 'safer' ?
  Reply With Quote
Old 15-07-2006, 05:23   #6 (permalink)
cam
vague™
 
cam's Avatar
 
Join Date: Mar 2004
Location: Glasgow
Posts: 5,337
Not risky as such, I doubt 500 profiles served via XML feeds would have much of an impact on your server load, but if you're worried about it maybe it'd be best to do it with statically generated/updated XML files.
__________________
Random goodness at The Blog

  Reply With Quote
Old 15-07-2006, 09:52   #7 (permalink)
FakeFrench
Fool
 
FakeFrench's Avatar
 
Join Date: Jun 2005
Location: Finsbury Park, London
Posts: 66
Quote:
Originally Posted by cam
Not risky as such, I doubt 500 profiles served via XML feeds would have much of an impact on your server load, but if you're worried about it maybe it'd be best to do it with statically generated/updated XML files.

Ok sure, thanks for your help on that cam! I've gone with the way you suggested and seems to be working well so far...
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8