Remove caching when returning lots, devices, fixes UI issue 18

This commit is contained in:
yiorgos marinellis 2020-04-01 19:56:09 +02:00
parent fea6f23c0c
commit 61fd9de477
2 changed files with 4 additions and 4 deletions

View file

@ -127,7 +127,7 @@ class DeviceView(View):
return self.schema.jsonify(device)
@auth.Auth.requires_auth
@cache(datetime.timedelta(minutes=1))
# @cache(datetime.timedelta(minutes=1))
def find(self, args: dict):
"""Gets many devices."""
# Compute query

View file

@ -59,7 +59,7 @@ class LotView(View):
lot = Lot.query.filter_by(id=id).one() # type: Lot
return self.schema.jsonify(lot, nested=2)
@teal.cache.cache(datetime.timedelta(minutes=5))
# @teal.cache.cache(datetime.timedelta(minutes=5))
def find(self, args: dict):
"""Gets lots.