Scenes: add clearSceneCache to DashboardScenePageStateManager (#94227)

This commit is contained in:
Agnès Toulet 2024-10-15 09:43:54 +02:00 committed by GitHub
parent 36c38b5310
commit 5fb685dcc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -255,6 +255,10 @@ export class DashboardScenePageStateManager extends StateManagerBase<DashboardSc
this.cache[cacheKey] = scene; this.cache[cacheKey] = scene;
} }
public clearSceneCache() {
this.cache = {};
}
public getCacheKey(cacheKey: string): string { public getCacheKey(cacheKey: string): string {
const scopesCacheKey = getSelectedScopesNames().sort().join('__scp__'); const scopesCacheKey = getSelectedScopesNames().sort().join('__scp__');