TheTVDB.com

Online TV Database
It is currently Wed Jun 19, 2013 4:12 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Wed Mar 07, 2012 6:23 pm 
Offline

Joined: Mon Nov 01, 2010 1:19 pm
Posts: 5
I as I understand there is cache that is updated on a periodic bases that services API requests. on a platform level will it be possible to have different cache timeouts for certian shows (like the The Daily Show) which is updated more often than a weekly show.? maybe even something event based that when a user contributes a new episode to the show we can expire the cache.

this aids in the auto scraping software like sickbeard and xbmc...

thanks.


Top
 Profile  
 
PostPosted: Wed Mar 07, 2012 6:30 pm 
Offline
Site Moderator

Joined: Sat Oct 16, 2010 5:48 pm
Posts: 1120
Location: England
(I'm sure one of the admins will correct me if I'm wrong) I believe current system already works in such a way that every time a change is made to a show, it is added to a queue and the entire show's cache is updated in 15mins-1hour.

_________________
---

Please watch this video to help LSU Computer Society try to win the RBS ESSA society competition! http://youtu.be/8JrhmoSXLXw - only 1:36min

Thanks :D


Top
 Profile  
 
PostPosted: Wed Mar 07, 2012 6:42 pm 
Offline
Forum Owner

Joined: Tue Apr 28, 2009 11:28 am
Posts: 3496
This is correct. Except for on the rare occasions that we have to do a complete xml rebuild (once a year or less) most api info is current in around 15 minutes. I believe that xbmc iteself keeps a local cache which is not instantly updated as I've seen myself and heard others complain about the data not being current even hours later. Not sure how sickbeard handles this, but I doubt it pulls xml from the site every few minutes when it checks for show updates.

_________________
Click here to LIKE me on Facebook!

Image


Top
 Profile  
 
PostPosted: Wed Mar 07, 2012 6:56 pm 
Offline

Joined: Mon Nov 01, 2010 1:19 pm
Posts: 5
this usually manifests itself in sickbeard when it find a scene release to download but cannot find any associated tvdb data until the cache is updated, and hence fails to post process the show and notify xbmc that a new show was added to the library.

again this is more prevalent in shows that have daily episodes rather than the weekly shows, this is not 100% since usually tvdb is updated with the full week's episodes ahead of time, its when a new set of episodes starts or the show is on haitus for a week or two.


Top
 Profile  
 
PostPosted: Wed Mar 07, 2012 6:57 pm 
Offline

Joined: Mon Nov 01, 2010 1:19 pm
Posts: 5
also thanks for the explanation.


Top
 Profile  
 
PostPosted: Wed Mar 07, 2012 8:56 pm 
Offline
Site Admin

Joined: Fri Nov 03, 2006 5:23 pm
Posts: 2145
New API may not need any sort of caching, since it's all based on MongoDB. Otherwise it'll be 100% squid/varnish and setting up more optimized rules like this shouldn't be too difficult.


Top
 Profile  
 
PostPosted: Thu Mar 08, 2012 1:29 am 
Offline
Forum Owner

Joined: Tue Apr 28, 2009 11:28 am
Posts: 3496
100% squid varnish sounds kinda hilarious btw.

_________________
Click here to LIKE me on Facebook!

Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group