feat(recipes): add cache version counter to model scanners

This commit is contained in:
Will Miao
2026-08-08 21:57:36 +08:00
parent 007883b7d1
commit 3e1216e9bc
5 changed files with 422 additions and 0 deletions

View File

@@ -2470,6 +2470,7 @@ class ModelLibraryHandler:
}
scanner = scanner_map.get(found_type or "")
if scanner:
scanner.bump_cache_version()
persist: Any = getattr(scanner, "_persist_current_cache", None)
if persist:
await persist()