Skip to content

Commit

Permalink
キャッシュクリアでfetchInstanceを強制 (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
kozakura913 authored Jun 21, 2024
1 parent f116907 commit 25904cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG_yojo.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- enhance: ノートとユーザーの検索時に照会を行うかが選択できるようになりました
- @foo​@example.com 形式でユーザ検索した場合に照会ができるようになりました
- add: 通知音を追加 [@mujin-nohuman (無人)](https://github.com/mujin-nohuman)
- fix: "キャッシュをクリア"してもインスタンス情報が更新されない不具合を修正 [#101](https://github.com/yojo-art/cherrypick/issues/101)

### Server
- remoteProxyエンドポイント設定を追加
Expand Down
2 changes: 2 additions & 0 deletions packages/frontend/src/scripts/clear-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { unisonReload } from '@/scripts/unison-reload.js';
import * as os from '@/os.js';
import { miLocalStorage } from '@/local-storage.js';
import { fetchCustomEmojis } from '@/custom-emojis.js';
import { fetchInstance } from '@/instance.js';

export async function clearCache() {
os.waiting();
Expand All @@ -11,5 +12,6 @@ export async function clearCache() {
miLocalStorage.removeItem('emojis');
miLocalStorage.removeItem('lastEmojisFetchedAt');
await fetchCustomEmojis(true);
await fetchInstance(true);
unisonReload();
}

0 comments on commit 25904cc

Please sign in to comment.