From 370552356ba08c0185542c2acd3f1d612a0534af Mon Sep 17 00:00:00 2001 From: WardPearce Date: Tue, 7 Oct 2025 23:52:29 +1300 Subject: [PATCH] On logout clear cache --- materialious/src/routes/(app)/+layout.svelte | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/materialious/src/routes/(app)/+layout.svelte b/materialious/src/routes/(app)/+layout.svelte index 97a5f6ab..24962019 100644 --- a/materialious/src/routes/(app)/+layout.svelte +++ b/materialious/src/routes/(app)/+layout.svelte @@ -18,10 +18,13 @@ import { authStore, darkModeStore, + feedCacheStore, instanceStore, interfaceAmoledTheme, interfaceDefaultPage, isAndroidTvStore, + playlistCacheStore, + searchCacheStore, syncPartyPeerStore, themeColorStore } from '$lib/store'; @@ -162,6 +165,9 @@ function logout() { authStore.set(null); + feedCacheStore.set({}); + searchCacheStore.set({}); + playlistCacheStore.set({}); goto('/'); }