Skip to content

Commit

Permalink
remove background tasks in cache
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Jan 22, 2024
1 parent 4b6ee29 commit e58da7d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ def wrapper(*args, **kwargs): # noqa
request = route_variables.get("request", None)
save_api_call_to_db(session=session, user=user, request=request)

if "background_tasks" in route_variables:
route_variables["background_tasks"].add_task(cache_response, last_updated)

# drop session and user
for var in ["session", "user", "request"]:
if var in route_variables:
Expand Down

0 comments on commit e58da7d

Please sign in to comment.