Ver código fonte

fix cache issue

tuanchris 4 meses atrás
pai
commit
b0797d314b
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      modules/core/pattern_manager.py

+ 2 - 1
modules/core/pattern_manager.py

@@ -444,7 +444,8 @@ def get_first_rho_from_cache(file_path, cache_data=None):
         from modules.core import cache_manager
 
         # Try to get from metadata cache first
-        file_name = os.path.basename(file_path)
+        # Use relative path from THETA_RHO_DIR to match cache keys (which include subdirectories)
+        file_name = os.path.relpath(file_path, THETA_RHO_DIR)
 
         # Use provided cache_data if available, otherwise load from disk
         if cache_data is not None: