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

Always refresh the cache.

parent bb0e066f
......@@ -216,9 +216,7 @@ class SlapTool(BaseTool):
entry = None
if entry is not None and type(entry.getValue()) == type({}):
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
else:
self._activateFillComputerInformationCache(computer_id, user, full)
......
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