From 1e310ed56d92d87735f93b782cc1fb0f287f6e00 Mon Sep 17 00:00:00 2001 From: lungsangg Date: Tue, 21 May 2024 13:18:07 +0530 Subject: [PATCH] cache_control_update --- reader/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reader/views.py b/reader/views.py index 2e98ed4b9a..066243f335 100644 --- a/reader/views.py +++ b/reader/views.py @@ -3199,7 +3199,7 @@ def topics_list_api(request): topics = get_all_topics(limit) response = [t.contents() for t in topics] response = jsonResponse(response, callback=request.GET.get("callback", None)) - response["Cache-Control"] = "max-age=3600" + response["Cache-Control"] = "max-age=0" return response @@ -3228,7 +3228,7 @@ def add_new_topic_api(request): t.save() clear_redis_cache() - + library.build_topic_auto_completer() library.get_topic_toc(rebuild=True) library.get_topic_toc_json(rebuild=True)