Skip to content

Commit

Permalink
CHG cache submissions for 60 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
wabscale committed Sep 19, 2023
1 parent 1c053ae commit 187857a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/anubis/lms/submissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def regrade_submission(submission: Submission | str, queue: str = "default") ->
return success_response({"message": "regrade started"})


@cache.memoize(timeout=3, unless=is_debug, source_check=True)
@cache.memoize(timeout=60, unless=is_debug, source_check=True)
def get_submissions(
user_id=None,
course_id=None,
Expand Down

0 comments on commit 187857a

Please sign in to comment.