diff --git a/codeGrader/backend/api/app.py b/codeGrader/backend/api/app.py index 615613d..9b4d9a9 100644 --- a/codeGrader/backend/api/app.py +++ b/codeGrader/backend/api/app.py @@ -537,6 +537,7 @@ def addSubmission() -> dict: @app.route("/submission/", methods=["GET"]) +@cache.memoize(config.cache_timeout, unless=cache_bypass) @authentication def submission(id_) -> dict: """ @@ -551,6 +552,7 @@ def submission(id_) -> dict: @app.route("/submissions", methods=['GET']) +@cache.cached(config.cache_timeout, unless=cache_bypass, query_string=True) @authentication def submissions() -> dict: """