瀏覽代碼

Do not clear file_lookup_cache without clearing class_path dir cache

Rudy Ges 1 年之前
父節點
當前提交
3dbee4ff93
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/core/classPaths.ml

+ 3 - 3
src/core/classPaths.ml

@@ -27,11 +27,11 @@ class class_paths = object(self)
 
 	method add (cp : class_path) =
 		l <- cp :: l;
-		file_lookup_cache#clear
+		self#clear_cache
 
 	method push (cp : class_path) =
 		l <- l @ [cp];
-		file_lookup_cache#clear
+		self#clear_cache
 
 	method find (f : class_path -> bool) =
 		List.find f l
@@ -54,7 +54,7 @@ class class_paths = object(self)
 				loop (cpl @ acc) l
 		in
 		l <- loop [] cpl;
-		file_lookup_cache#clear
+		self#clear_cache
 
 	method modify_inplace (f : class_path -> class_path list) =
 		self#modify f l