增加主动清除弹幕缓存

This commit is contained in:
mtvpls
2025-12-10 00:13:08 +08:00
parent af12da4263
commit a5b02ea8d5
6 changed files with 34 additions and 346 deletions

View File

@@ -15,6 +15,7 @@ import ChatFloatingWindow from '../components/watch-room/ChatFloatingWindow';
import { DownloadProvider } from '../contexts/DownloadContext';
import { DownloadBubble } from '../components/DownloadBubble';
import { DownloadPanel } from '../components/DownloadPanel';
import { DanmakuCacheCleanup } from '../components/DanmakuCacheCleanup';
const inter = Inter({ subsets: ['latin'] });
export const dynamic = 'force-dynamic';
@@ -128,6 +129,7 @@ export default async function RootLayout({
<SiteProvider siteName={siteName} announcement={announcement}>
<WatchRoomProvider>
<DownloadProvider>
<DanmakuCacheCleanup />
{children}
<GlobalErrorIndicator />
<ChatFloatingWindow />