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)) question_json_cache = cache.get("{}_question_json_{}".format("longs", pk))
if question_json_cache is not None and not question.recreate_json: if question_json_cache is not None and not question.recreate_json:
question_json_cache["cached"] = True #question_json_cache["cached"] = True
return JsonResponse(question_json_cache) return question_json_cache
question_json = question.get_json(pk) question_json = question.get_json(pk)
@@ -1006,7 +1006,7 @@ def question_json(request, pk):
question.recreate_json = False question.recreate_json = False
question.save() question.save()
return JsonResponse(question_json) return question_json
@login_required @login_required
def question_json_recreate(request, pk): def question_json_recreate(request, pk):