ImageUltimateWebConfiguration.CacheLocation Property
Definition
- Namespace
- GleamTech.ImageUltimate.AspNet
- Assembly
- GleamTech.ImageUltimate.dll
Gets or sets the location to store cached images.
The default value is "~/App_Data/ImageCache".
This property can be set to:
-
A plain string which contains a physical/virtual path
(e.g."c:\SomeFolder","/SomeFolder","~/SomeFolder").
This is parsed as GleamTech.FileSystems.Physical.PhysicalLocation.
Note that virtual paths can only be resolved in a web application
and on Linux paths starting with "/" are physical paths and not virtual paths.
-
A GleamTech.FileSystems.Location instance created with one of the builtin location providers
(e.g. GleamTech.FileSystems.Physical.PhysicalLocation, GleamTech.FileSystems.AzureBlob.AzureBlobLocation, GleamTech.FileSystems.AmazonS3.AmazonS3Location, GleamTech.FileSystems.Archive.ArchiveLocation).
You can also override GleamTech.FileSystems.Location base class to implement your custom location provider.
-
A provider string which defines a specific location provider
(e.g."Type=Physical; Path=c:\SomeFolder").
When you use a cache path within the current application's root directory (e.g. "~/SomeFolder", "/SomeFolder" or "C:\inetpub\wwwroot\MySite\SomeFolder"), the request will be handled directly via IIS (using RewritePath) for better download performance.
public Location CacheLocation { get; set; }
Property Value
- Location