1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Updated to doreah 0.5.1

This commit is contained in:
Krateng
2019-04-15 12:26:12 +02:00
parent 86d20cc0a8
commit ac3e05a77d
5 changed files with 12 additions and 8 deletions

View File

@@ -895,7 +895,7 @@ def sync():
import copy
cache_query = {}
cache_query_permanent = Cache(maxsize=30000)
cache_query_permanent = Cache(maxmemory=1024*1024*settings.get_settings("DB_CACHE_SIZE"),persistent=True,name="dbcache_query")
cacheday = (0,0,0)
def db_query(**kwargs):
check_cache_age()
@@ -918,7 +918,7 @@ def db_query(**kwargs):
return result
cache_aggregate = {}
cache_aggregate_permanent = Cache(maxsize=30000)
cache_aggregate_permanent = Cache(maxmemory=1024*1024*settings.get_settings("DB_CACHE_SIZE"),persistent=True,name="dbcache_aggregate")
def db_aggregate(**kwargs):
check_cache_age()
global cache_aggregate, cache_aggregate_permanent