Limiting feed to the newest 5 items instead of 10

GAE started counting UrlFetches to the free quota of incoming bandwith
and this made the app go over it's daily limit. Limited to only 50%
should be able to keep it under limit but users may miss some new
content if they arrive in burst or clients don't update frequently.
This commit is contained in:
Laszlo Zeke 2017-07-20 11:40:32 +02:00
parent 4555518112
commit 53da7045d9
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ from app_id import TWITCH_CLIENT_ID
VODCACHE_PREFIX = 'vodcache'
USERIDCACHE_PREFIX = 'userid'
VOD_URL_TEMPLATE = 'https://api.twitch.tv/kraken/channels/%s/videos?broadcast_type=archive,highlight,upload'
VOD_URL_TEMPLATE = 'https://api.twitch.tv/kraken/channels/%s/videos?broadcast_type=archive,highlight,upload&limit=5'
USERID_URL_TEMPLATE = 'https://api.twitch.tv/kraken/users?login=%s'
VODCACHE_LIFETIME = 120
USERIDCACHE_LIFETIME = 0 # No expire