reduce ttl and timeout on brotli generation

recent changes (csrf tokens) have made brotli caches much less durable
since each session for a same user gets a different page
This commit is contained in:
codl 2017-08-29 09:33:25 +02:00
parent 88b559a2f1
commit e4dbdf98ee
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ import os.path
import mimetypes
class BrotliCache(object):
def __init__(self, redis_kwargs={}, max_wait=0.05, expire=60*60*12):
def __init__(self, redis_kwargs={}, max_wait=0.015, expire=60*60*6):
self.redis = redis.StrictRedis(**redis_kwargs)
self.max_wait = max_wait
self.expire = expire