From 1daa21d93088b537a310aca21a9fa6eb1c413bd1 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Wed, 26 Apr 2017 21:55:42 +0000 Subject: [PATCH] Moved cache back to the database --- titanembeds/utils.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/titanembeds/utils.py b/titanembeds/utils.py index 4d66a56..e1aba5e 100644 --- a/titanembeds/utils.py +++ b/titanembeds/utils.py @@ -9,10 +9,9 @@ import string import hashlib cache_opts = { - 'cache.type': 'file', #'ext:database', - 'cache.data_dir': 'tmp/cachedata', - 'cache.lock_dir': 'tmp/cachelock', - #'cache.url': config["database-uri"], + 'cache.type': 'ext:database', + 'cache.url': config["database-uri"], + 'cache.sa.pool_recycle': 250, } cache = CacheManager(**parse_cache_config_options(cache_opts))