Question

Im trying to combine the ImageResizer plugins DiskCache and Virtualfolder, becouse I want to save the images to a network path. I have added both plugins in my webconfig:

 <resizer>
    <plugins>
      <add name="MvcRoutingShim" />
      <add name="DiskCache" />
      <add name="PrettyGifs" />
      <add name="SimpleFilters" />
      <add name="VirtualFolder" virtualPath="~/" physicalPath="D:\temp\diskcache" vpp="false"/>
    </plugins>
    <diskCache dir="~/" autoClean="false" hashModifiedDate="true" enabled="true"
             subfolders="32" cacheAccessTimeout="15000" />
  </resizer>

But I dont understand how I should map the VirtualFolder diskcache dir, to save to the physical path.

Could someone give an example how to save images with diskcash to a network path?

Was it helpful?

Solution

You must use an IIS virtual folder, not an ImageResizer virtual folder. And it can't be the root of the site, it needs to be a subdirectory.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top