.
This commit is contained in:
+3
-3
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user