play页面缓存引入主动清理机制
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { initDanmakuModule } from '@/lib/danmaku/api';
|
||||
import { initRecommendationCacheModule } from '@/lib/recommendations/cache';
|
||||
|
||||
let startupCacheCleanupInitialized = false;
|
||||
|
||||
export function initStartupCacheCleanup(): void {
|
||||
if (typeof window === 'undefined' || startupCacheCleanupInitialized) {
|
||||
return;
|
||||
}
|
||||
|
||||
startupCacheCleanupInitialized = true;
|
||||
|
||||
initDanmakuModule();
|
||||
initRecommendationCacheModule();
|
||||
}
|
||||
Reference in New Issue
Block a user