From 187857ac0bbb0acb3dd02e944fe03d1050237e4d Mon Sep 17 00:00:00 2001 From: John McCann Cunniff Jr Date: Tue, 19 Sep 2023 11:03:24 -0400 Subject: [PATCH] CHG cache submissions for 60 seconds --- api/anubis/lms/submissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/anubis/lms/submissions.py b/api/anubis/lms/submissions.py index 448263cb..882f0803 100644 --- a/api/anubis/lms/submissions.py +++ b/api/anubis/lms/submissions.py @@ -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,