RSS Feeds loading slowly

Discussion in 'Programming' started by melol2, Jan 11, 2007.

  1. #1
    melol2, Jan 11, 2007 IP
  2. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #2
    Where are the feeds?
    I can't see them I think.
     
    Richie_Ni, Jan 11, 2007 IP
  3. melol2

    melol2 Active Member

    Messages:
    511
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #3
    They take about 5 mins to load. RIght sidebar is funny videos. And in the middle under news are the jokes of the day.
     
    melol2, Jan 11, 2007 IP
  4. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #4
    It took me around 30 sec's and then my browser said "Done" in the status bar... :(
     
    Richie_Ni, Jan 11, 2007 IP
  5. rodney88

    rodney88 Guest

    Messages:
    480
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Loaded instantly for me.

    If it's not already doing this, write a script to download the feeds (or here, whatever the rssfeedreader site sends back) and store them on your server. Have the site read from the stored version and setup a CRON task to run the script as often as needed - in this case daily.
     
    rodney88, Jan 11, 2007 IP
  6. kohashi

    kohashi Well-Known Member

    Messages:
    1,198
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    140
    #6
    lookup magpieRSS script, it will cache RSS feeds for you and you can set interval. Only needs to load once per interval, I set a cron job to load each feed that I use hourly (example gamepress.com) so hopefully no users see any sort of delay... also loading them into a database so data isn't pulled directly from cache, this seems to speed it up even more..

    RSS (magpiee)-->mysql db-->website

    just a thought
     
    kohashi, Jan 11, 2007 IP
  7. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #7
    ^^ Either that, or store the data in your database each couple of hours using cron.

    Your whole site took like a minute to load for me.
     
    nico_swd, Jan 12, 2007 IP
  8. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #8
    Yup, Cron it to reduce resources. Otherwise, look through the code and try to minimize the URL or DB calls.
     
    ccoonen, Jan 12, 2007 IP