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:
parent
88b559a2f1
commit
e4dbdf98ee
|
@ -7,7 +7,7 @@ import os.path
|
||||||
import mimetypes
|
import mimetypes
|
||||||
|
|
||||||
class BrotliCache(object):
|
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.redis = redis.StrictRedis(**redis_kwargs)
|
||||||
self.max_wait = max_wait
|
self.max_wait = max_wait
|
||||||
self.expire = expire
|
self.expire = expire
|
||||||
|
|
Loading…
Reference in New Issue