This commit is contained in:
Ross
2021-03-08 12:26:28 +00:00
parent 1bed3035e4
commit c7c0cc514c
+3 -3
View File
@@ -996,8 +996,8 @@ def question_json(request, pk):
question_json_cache = cache.get("{}_question_json_{}".format("longs", pk))
if question_json_cache is not None and not question.recreate_json:
question_json_cache["cached"] = True
return JsonResponse(question_json_cache)
#question_json_cache["cached"] = True
return question_json_cache
question_json = question.get_json(pk)
@@ -1006,7 +1006,7 @@ def question_json(request, pk):
question.recreate_json = False
question.save()
return JsonResponse(question_json)
return question_json
@login_required
def question_json_recreate(request, pk):