From 6b4704b2e2e44df664a47f5b65378460bee3b909 Mon Sep 17 00:00:00 2001 From: sadnub Date: Sat, 9 Apr 2022 22:00:56 -0400 Subject: [PATCH] fix caching tasks --- api/tacticalrmm/agents/models.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/api/tacticalrmm/agents/models.py b/api/tacticalrmm/agents/models.py index dd887e17..ce55082a 100644 --- a/api/tacticalrmm/agents/models.py +++ b/api/tacticalrmm/agents/models.py @@ -693,12 +693,9 @@ class Agent(BaseAuditModel): cache_tasks = False if not self.policy and not self.block_policy_inheritance: - print("Cachin and Stashin") cached_tasks = cache.get(f"site_{self.site_id}_tasks") - print(cached_tasks) if cached_tasks and isinstance(cached_tasks, list): - print("Returning") - return cached_tasks + return cache_tasks else: cached_tasks = True # get agent tasks based on policies