From b89c73d67fc5be41d08f71d429ef50b5fb9a82a5 Mon Sep 17 00:00:00 2001 From: Tlams Date: Fri, 9 Feb 2018 14:31:35 +0000 Subject: [PATCH] Bypass redis cache by debugmode --- code/scripts/main/core/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/scripts/main/core/core.py b/code/scripts/main/core/core.py index b0cee50..3649309 100644 --- a/code/scripts/main/core/core.py +++ b/code/scripts/main/core/core.py @@ -104,9 +104,9 @@ class Core: hash_object = hashlib.md5("{0}-{1}-{2}-{3}-{4}".format(dest, date, cluster, node, vmid).encode('utf-8')) hash_hex = hash_object.hexdigest() - cache = None # self.redis_cache.get_message(hash_hex) + cache = self.redis_cache.get_message(hash_hex) - if cache is None: + if cache is None or self.generalconf["logger"]["debug"] == True: if dest == "instances": resultmbrequest = self.mongo.get_instances(date, cluster, node, vmid) elif dest == "nodes":