From 813bf84bf32944f19bd8d0069f0ff45749497c70 Mon Sep 17 00:00:00 2001 From: Michael Kaiser Date: Sun, 19 May 2024 19:00:59 +0200 Subject: [PATCH] adding cahcing to testcases route in backend api --- codeGrader/backend/api/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/codeGrader/backend/api/app.py b/codeGrader/backend/api/app.py index 4233d55..615613d 100644 --- a/codeGrader/backend/api/app.py +++ b/codeGrader/backend/api/app.py @@ -594,6 +594,7 @@ def testcase(id_) -> dict: @app.route("/testcases", methods=['GET']) +@cache.cached(config.cache_timeout, unless=cache_bypass, query_string=True) @authentication def testcases() -> dict: """