···7474// clear all storage and reload to logout
7575async function handleLogout() {
7676 try {
7777+ // Clear API cache before deleting databases
7878+ await apiCache.clear().catch((err) => {
7979+ console.warn("[APICache] Failed to clear cache on logout:", err);
8080+ });
8181+7782 if (indexedDB.databases) {
7883 const dbs = await indexedDB.databases();
7984 for (const db of dbs) {