feat(app): allow disabling of runtime/registry caches
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 1m58s

This commit is contained in:
2026-01-19 14:22:14 +01:00
parent 83cb2bd950
commit 11de746c01
6 changed files with 52 additions and 2 deletions

View File

@@ -42,6 +42,21 @@
appSettings.value.debug.useWorker ? workerRuntime : memoryRuntime,
);
$effect(() => {
if (appSettings.value.debug.cache.useRegistryCache) {
nodeRegistry.cache = registryCache;
} else {
nodeRegistry.cache = undefined;
}
workerRuntime.setUseCache(appSettings.value.debug.cache.useRuntimeCache);
if (appSettings.value.debug.cache.useRuntimeCache) {
memoryRuntime.cache = runtimeCache;
} else {
memoryRuntime.cache = undefined;
}
});
let activeNode = $state<NodeInstance | undefined>(undefined);
let scene = $state<Group>(null!);