mirror of
https://git.wownero.com/wownero/wownero-funding-system.git
synced 2024-08-15 00:53:45 +00:00
Cache daemon communication up to 60 seconds
This commit is contained in:
parent
bece1a90e7
commit
54465725af
3 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue