diff --git a/build/Build.bat b/build/Build.bat index 61973a204..94f43b25c 100644 --- a/build/Build.bat +++ b/build/Build.bat @@ -1,6 +1,6 @@ @ECHO OFF SET version=1.9.3.0 -SET webversion=3.2.7.0 +SET webversion=3.2.8.0 SET webconfigversion=1.1.2.0 ECHO Building ImageProcessor %version%, ImageProcess.Web %webversion% and ImageProcess.Web.Config %webconfigversion% diff --git a/src/ImageProcessor.Web/NET45/Caching/DiskCache.cs b/src/ImageProcessor.Web/NET45/Caching/DiskCache.cs index e48e57207..7d4150f45 100644 --- a/src/ImageProcessor.Web/NET45/Caching/DiskCache.cs +++ b/src/ImageProcessor.Web/NET45/Caching/DiskCache.cs @@ -14,9 +14,9 @@ namespace ImageProcessor.Web.Caching using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; + using System.Globalization; using System.IO; using System.Linq; - using System.Security.Cryptography; using System.Threading.Tasks; using System.Web; using System.Web.Hosting; @@ -286,14 +286,11 @@ namespace ImageProcessor.Web.Caching { // Pull the latest info. imageFileInfo.Refresh(); - using (MD5 md5 = MD5.Create()) - { - using (FileStream stream = File.OpenRead(imageFileInfo.FullName)) - { - byte[] hash = md5.ComputeHash(stream); - streamHash = BitConverter.ToString(hash); - } - } + + // Checking the stream itself is far too processor intensive so we make a best guess. + string creation = imageFileInfo.CreationTimeUtc.ToString(CultureInfo.InvariantCulture); + string length = imageFileInfo.Length.ToString(CultureInfo.InvariantCulture); + streamHash = string.Format("{0}{1}", creation, length); } } } diff --git a/src/ImageProcessor.Web/NET45/Properties/AssemblyInfo.cs b/src/ImageProcessor.Web/NET45/Properties/AssemblyInfo.cs index 8763d6242..e8c655990 100644 --- a/src/ImageProcessor.Web/NET45/Properties/AssemblyInfo.cs +++ b/src/ImageProcessor.Web/NET45/Properties/AssemblyInfo.cs @@ -35,5 +35,5 @@ using ImageProcessor.Web.HttpModules; // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("3.2.7.0")] -[assembly: AssemblyFileVersion("3.2.7.0")] \ No newline at end of file +[assembly: AssemblyVersion("3.2.8.0")] +[assembly: AssemblyFileVersion("3.2.8.0")] \ No newline at end of file