summaryrefslogtreecommitdiff
path: root/apps/web/src/core/managers/media-manager.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/core/managers/media-manager.ts')
-rw-r--r--apps/web/src/core/managers/media-manager.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/web/src/core/managers/media-manager.ts b/apps/web/src/core/managers/media-manager.ts
index 69da6e80..739fd3fa 100644
--- a/apps/web/src/core/managers/media-manager.ts
+++ b/apps/web/src/core/managers/media-manager.ts
@@ -4,6 +4,7 @@ import type { MediaAsset } from "@/media/types";
import { storageService } from "@/services/storage/service";
import { generateUUID } from "@/utils/id";
import { videoCache } from "@/services/video-cache/service";
+import { thumbnailCache } from "@/services/thumbnail-cache/service";
import { waveformCache } from "@/services/waveform-cache/service";
import { BatchCommand, RemoveMediaAssetCommand } from "@/commands";
@@ -103,6 +104,7 @@ export class MediaManager {
}
async clearProjectMedia({ projectId }: { projectId: string }): Promise<void> {
+ thumbnailCache.clearAll();
waveformCache.clearAll();
this.assets.forEach((asset) => {
@@ -131,6 +133,7 @@ export class MediaManager {
clearAllAssets(): void {
videoCache.clearAll();
+ thumbnailCache.clearAll();
waveformCache.clearAll();
this.assets.forEach((asset) => {