Browse Source

Double cache size.

Former-commit-id: 5874c4c54a8454df44dafe0c7abbd75c4f961127
af/merge-core
James South 12 years ago
parent
commit
1c1ff55313
  1. 97
      src/ImageProcessor.Web/NET4/ImageProcessor.Web_NET4.csproj
  2. 2
      src/ImageProcessor.Web/NET45/Caching/DiskCache.cs
  3. 6
      src/TestWebsites/NET4/Web.config

97
src/ImageProcessor.Web/NET4/ImageProcessor.Web_NET4.csproj

@ -83,10 +83,21 @@
<Compile Include="..\NET45\Caching\MemCache.cs">
<Link>MemCache.cs</Link>
</Compile>
<Compile Include="..\NET45\Config\ImageCacheSection.cs" />
<Compile Include="..\NET45\Config\ImageProcessingSection.cs" />
<Compile Include="..\NET45\Config\ImageProcessorConfig.cs" />
<Compile Include="..\NET45\Config\ImageSecuritySection.cs" />
<Compile Include="..\NET45\Configuration\ImageCacheSection.cs">
<Link>ImageCacheSection.cs</Link>
</Compile>
<Compile Include="..\NET45\Configuration\ImageProcessingSection.cs">
<Link>ImageProcessingSection.cs</Link>
</Compile>
<Compile Include="..\NET45\Configuration\ImageProcessorConfiguration.cs">
<Link>ImageProcessorConfiguration.cs</Link>
</Compile>
<Compile Include="..\NET45\Configuration\ImageSecuritySection.cs">
<Link>ImageSecuritySection.cs</Link>
</Compile>
<Compile Include="..\NET45\Helpers\CommonParameterParserUtility.cs">
<Link>CommonParameterParserUtility.cs</Link>
</Compile>
<Compile Include="..\NET45\Helpers\ImageHelpers.cs">
<Link>ImageHelpers.cs</Link>
</Compile>
@ -97,6 +108,66 @@
<Compile Include="..\NET45\Helpers\TaskHelpers.cs" />
<Compile Include="..\NET45\HttpModules\ImageProcessingModule.cs" />
<Compile Include="..\NET45\ImageFactoryExtensions.cs" />
<Compile Include="..\NET45\Processors\Alpha.cs">
<Link>Alpha.cs</Link>
</Compile>
<Compile Include="..\NET45\Processors\AutoRotate.cs">
<Link>AutoRotate.cs</Link>
</Compile>
<Compile Include="..\NET45\Processors\BackgroundColor.cs">
<Link>BackgroundColor.cs</Link>
</Compile>
<Compile Include="..\NET45\Processors\Brightness.cs">
<Link>Brightness.cs</Link>
</Compile>
<Compile Include="..\NET45\Processors\Contrast.cs">
<Link>Contrast.cs</Link>
</Compile>
<Compile Include="..\NET45\Processors\Crop.cs">
<Link>Crop.cs</Link>
</Compile>
<Compile Include="..\NET45\Processors\Filter.cs">
<Link>Filter.cs</Link>
</Compile>
<Compile Include="..\NET45\Processors\Flip.cs">
<Link>Flip.cs</Link>
</Compile>
<Compile Include="..\NET45\Processors\Format.cs">
<Link>Format.cs</Link>
</Compile>
<Compile Include="..\NET45\Processors\GaussianBlur.cs">
<Link>GaussianBlur.cs</Link>
</Compile>
<Compile Include="..\NET45\Processors\GaussianSharpen.cs">
<Link>GaussianSharpen.cs</Link>
</Compile>
<Compile Include="..\NET45\Processors\IWebGraphicsProcessor.cs">
<Link>IWebGraphicsProcessor.cs</Link>
</Compile>
<Compile Include="..\NET45\Processors\Quality.cs">
<Link>Quality.cs</Link>
</Compile>
<Compile Include="..\NET45\Processors\Resize.cs">
<Link>Resize.cs</Link>
</Compile>
<Compile Include="..\NET45\Processors\Rotate.cs">
<Link>Rotate.cs</Link>
</Compile>
<Compile Include="..\NET45\Processors\RoundedCorners.cs">
<Link>RoundedCorners.cs</Link>
</Compile>
<Compile Include="..\NET45\Processors\Saturation.cs">
<Link>Saturation.cs</Link>
</Compile>
<Compile Include="..\NET45\Processors\Tint.cs">
<Link>Tint.cs</Link>
</Compile>
<Compile Include="..\NET45\Processors\Vignette.cs">
<Link>Vignette.cs</Link>
</Compile>
<Compile Include="..\NET45\Processors\Watermark.cs">
<Link>Watermark.cs</Link>
</Compile>
<Compile Include="..\NET45\Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
@ -106,15 +177,15 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="..\NET45\Config\Resources\cache.config">
<Link>Config\Resources\cache.config</Link>
</EmbeddedResource>
<EmbeddedResource Include="..\NET45\Config\Resources\processing.config">
<Link>Config\Resources\processing.config</Link>
</EmbeddedResource>
<EmbeddedResource Include="..\NET45\Config\Resources\security.config">
<Link>Config\Resources\security.config</Link>
</EmbeddedResource>
<None Include="..\NET45\Configuration\Resources\cache.config">
<Link>Configuration\Resources\cache.config</Link>
</None>
<None Include="..\NET45\Configuration\Resources\processing.config">
<Link>Configuration\Resources\processing.config</Link>
</None>
<None Include="..\NET45\Configuration\Resources\security.config">
<Link>Configuration\Resources\security.config</Link>
</None>
<None Include="app.config">
<SubType>Designer</SubType>
</None>

2
src/ImageProcessor.Web/NET45/Caching/DiskCache.cs

@ -45,7 +45,7 @@ namespace ImageProcessor.Web.Caching
/// <see cref="http://stackoverflow.com/questions/115882/how-do-you-deal-with-lots-of-small-files"/>
/// <see cref="http://stackoverflow.com/questions/1638219/millions-of-small-graphics-files-and-how-to-overcome-slow-file-system-access-on"/>
/// </remarks>
private const int MaxFilesCount = 50;
private const int MaxFilesCount = 100;
/// <summary>
/// The absolute path to virtual cache path on the server.

6
src/TestWebsites/NET4/Web.config

@ -7,9 +7,9 @@
<!-- Configuration section-handler declaration area. -->
<configSections>
<sectionGroup name="imageProcessor">
<section name="security" requirePermission="false" type="ImageProcessor.Web.Config.ImageSecuritySection, ImageProcessor.Web" />
<section name="processing" requirePermission="false" type="ImageProcessor.Web.Config.ImageProcessingSection, ImageProcessor.Web" />
<section name="cache" requirePermission="false" type="ImageProcessor.Web.Config.ImageCacheSection, ImageProcessor.Web" />
<section name="security" requirePermission="false" type="ImageProcessor.Web.Configuration.ImageSecuritySection, ImageProcessor.Web" />
<section name="processing" requirePermission="false" type="ImageProcessor.Web.Configuration.ImageProcessingSection, ImageProcessor.Web" />
<section name="cache" requirePermission="false" type="ImageProcessor.Web.Configuration.ImageCacheSection, ImageProcessor.Web" />
</sectionGroup>
</configSections>
<imageProcessor>

Loading…
Cancel
Save