View Single Post
Old 02-03-2014, 05:45 PM  
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,192
Quote:
Originally Posted by adulttemps View Post
Obviously within the 30 minute span users could log in or out, but it allows you to cache the results and not call the feed every page load. And stores the offline pages so if they are indexed it will just show a featured cam on that page and leave an offline message.
Hey, I've been playing with the Chaturbate api feed too, not for a wp plugin though, just as a stand alone white label type.

First cut was pulling the feed each page load which of course made the page take a lot longer to load. Second cut was into a database (not wp, but same idea). During testing, I noticed a really hard draw on the server when I was doing the simplexml pull of the feed. I changed that up some and just pull the feed using curl and then a custom parse of it and it runs a shit load quicker and doesn't produce the load I was seeing. That is what I have in the current cut and I am doing an update every 5 minutes to keep it fresh and it seems to be working quite well.

The site is in my sig right now but if sigs are turned off it is at http://www.camfoxes.com
__________________
All cookies cleared!

Last edited by sarettah; 02-03-2014 at 05:47 PM..
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote