From 6cc6629a326952bb677d1c1623e3858f548e9453 Mon Sep 17 00:00:00 2001 From: WardPearce Date: Wed, 11 Feb 2026 18:14:06 +1300 Subject: [PATCH] Reset caches on instance change --- materialious/src/lib/components/settings/Interface.svelte | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/materialious/src/lib/components/settings/Interface.svelte b/materialious/src/lib/components/settings/Interface.svelte index 88cf7acc..ee16603e 100644 --- a/materialious/src/lib/components/settings/Interface.svelte +++ b/materialious/src/lib/components/settings/Interface.svelte @@ -17,6 +17,7 @@ import { authStore, darkModeStore, + feedCacheStore, instanceStore, interfaceAllowInsecureRequests, interfaceAmoledTheme, @@ -31,6 +32,8 @@ interfaceRegionStore, interfaceSearchHistoryEnabled, interfaceSearchSuggestionsStore, + playlistCacheStore, + searchCacheStore, searchHistoryStore, themeColorStore } from '../../store'; @@ -105,6 +108,10 @@ instanceStore.set(instance); authStore.set(null); + feedCacheStore.set({}); + searchCacheStore.set({}); + playlistCacheStore.set({}); + goto(resolve('/', {}), { replaceState: true }); ui('#dialog-settings'); }