refactor: simplify symlink cache invalidation by removing background rescan and noise_mtime in favor of a root-path-only fingerprint.

This commit is contained in:
Will Miao
2026-01-03 19:29:53 +08:00
parent 8c68298202
commit edbcca9bbd
4 changed files with 221 additions and 125 deletions

View File

@@ -654,6 +654,11 @@ class ModelScanner:
self._is_initializing = True # Set flag
try:
start_time = time.time()
# Manually trigger a symlink rescan during a full rebuild.
# This ensures that any new symlink mappings are correctly picked up.
config.rebuild_symlink_cache()
# Determine the page type based on model type
# Scan for new data
scan_result = await self._gather_model_data()