Browse Source

prevent unnecessary cache updates

Nicolas Cannasse 18 hours ago
parent
commit
9af0585b51
1 changed files with 6 additions and 4 deletions
  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)
 		}