Cache daemon communication up to 60 seconds

This commit is contained in:
dsc 2020-06-09 05:16:37 +02:00
parent bece1a90e7
commit 54465725af
3 changed files with 7 additions and 3 deletions

View file

@ -19,7 +19,7 @@ def json_encoder(obj):
class Summary:
@staticmethod
@cache.cached(timeout=300, key_prefix="fetch_prices")
@cache.cached(timeout=600, key_prefix="fetch_prices")
def fetch_prices():
return {
'coin-btc': coin_btc_value(),
@ -27,7 +27,7 @@ class Summary:
}
@staticmethod
@cache.cached(timeout=300, key_prefix="funding_stats")
@cache.cached(timeout=600, key_prefix="funding_stats")
def fetch_stats():
from funding.factory import db
from funding.orm.orm import Proposal, User, Comment