From 60184a290c45926583393cf53895e063b4798ff5 Mon Sep 17 00:00:00 2001 From: Dan Ungureanu Date: Fri, 28 Feb 2020 11:10:03 +0200 Subject: [PATCH] FIX: Sync preload key format for category topic lists The server and client used two different formats for preload keys. The server was using 'topic_list_c/SLUG/l/latest', but the client was using 'topic_list_c/SLUG/ID/l/latest'. This commit is an addition to 374534f00ee487d859fc2b826ea519befe0da350. --- app/models/topic_list.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/topic_list.rb b/app/models/topic_list.rb index 52b0ee00708..d51c0f153f3 100644 --- a/app/models/topic_list.rb +++ b/app/models/topic_list.rb @@ -67,7 +67,7 @@ class TopicList def preload_key if @category - "topic_list_#{@category.url.sub(/^\//, '')}/l/#{@filter}" + "topic_list_#{@category.url.sub(/^\//, '')}/#{@category.id}/l/#{@filter}" else "topic_list_#{@filter}" end