diff --git a/graphify/cache.py b/graphify/cache.py index 6b30d71a8..cc3a5a48b 100644 --- a/graphify/cache.py +++ b/graphify/cache.py @@ -1531,9 +1531,9 @@ def save_semantic_cache( def group_skipped(fpath: str) -> bool: """Mirror the write-loop skip condition for one source_file group.""" - p = resolved_source_path(fpath) + cache_path, p = _recover_group_path(fpath) return not p.is_file() or ( - allowed_paths is not None and source_path(fpath) not in allowed_paths + allowed_paths is not None and cache_path not in allowed_paths ) # Dangling-reference pruning (#1916). A node group is skipped by the write @@ -1590,8 +1590,7 @@ def save_semantic_cache( saved = 0 skipped_not_file = 0 for fpath, result in by_file.items(): - cache_path = source_path(fpath) - p = resolved_source_path(fpath) + cache_path, p = _recover_group_path(fpath) if p.is_file(): if allowed_paths is not None and cache_path not in allowed_paths: warnings.warn(