diff options
author | zsloan | 2023-10-25 19:36:20 +0000 |
---|---|---|
committer | zsloan | 2023-10-25 19:36:20 +0000 |
commit | b595a51da68db023e9822c84aa991f23a22fce0a (patch) | |
tree | db52892a7d740a57dec8cc6e8aa52dafdfa4bb18 /wqflask | |
parent | 554da75ce6617ee5d91bc82085cfa2857fbc7637 (diff) | |
download | genenetwork2-b595a51da68db023e9822c84aa991f23a22fce0a.tar.gz |
Remove expiration time when caching mapping inputs
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/views.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index f24e033a..7d952874 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -826,10 +826,9 @@ def mapping_results_page(hash_of_inputs=None): @app.route("/cache_mapping_inputs", methods=('POST',)) def cache_mapping_inputs(): - ONE_MONTH = 60 * 60 * 24 * 30 cache_id = request.form.get("inputs_hash") inputs_json = Redis.get(cache_id) - Redis.set(cache_id, inputs_json, ex=ONE_MONTH) + Redis.set(cache_id, inputs_json) return "Success" |