소스 검색

prevent unnecessary cache updates

Nicolas Cannasse 21 시간 전
부모
커밋
9af0585b51
1개의 변경된 파일6개의 추가작업 그리고 4개의 파일을 삭제
  1. 6 4
      hxd/fs/FileConverter.hx

+ 6 - 4
hxd/fs/FileConverter.hx

@@ -361,10 +361,12 @@ class FileConverter {
 		var localContextJson = localContext == null ? null : haxe.Json.stringify(localContext);
 		if( alreadyGen && match.hash == hash && match.localParamsHash == localParamsHash ) {
 			conv.cleanup();
-			match.time = time;
-			match.milliseconds = milliseconds;
-			match.localContextJson = localContextJson;
-			saveCache();
+			if( match.time != time || match.milliseconds != milliseconds || match.localContextJson != localContextJson ) {
+				match.time = time;
+				match.milliseconds = milliseconds;
+				match.localContextJson = localContextJson;
+				saveCache();
+			}
 			return; // not changed (hash)
 		}