mirror of
https://github.com/discourse/discourse.git
synced 2025-02-24 07:58:40 +08:00

If the server is configured to use a view like `categories_and_latest_topics`, it will preload data for the topic list. If the client doesn't actually use it (e.g. on mobile), then that preloaded data would remain cached and be used for the next loaded topic list. This commit ensures it's always removed, and adds a test for the behaviour. https://meta.discourse.org/t/237126/35