Commit 4e695524 authored by Łukasz Nowak's avatar Łukasz Nowak

Always refresh the cache.

parent bb0e066f
...@@ -216,8 +216,6 @@ class SlapTool(BaseTool): ...@@ -216,8 +216,6 @@ class SlapTool(BaseTool):
entry = None entry = None
if entry is not None and type(entry.getValue()) == type({}): if entry is not None and type(entry.getValue()) == type({}):
result = entry.getValue()['data'] result = entry.getValue()['data']
if time.time() - entry.getValue()['time'] > 60 * 1:
# entry was stored 1 minutes ago, ask for recalculation
self._activateFillComputerInformationCache(computer_id, user, full) self._activateFillComputerInformationCache(computer_id, user, full)
return result return result
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment