ImageUltimateWebConfigurationCacheLocation Property

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 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 Location instance created with one of the builtin location providers
    (e.g. PhysicalLocation, AzureBlobLocation, AmazonS3Location, ArchiveLocation).

    You can also override 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.

Definition

Namespace: GleamTech.ImageUltimate.AspNet
Assembly: GleamTech.ImageUltimate (in GleamTech.ImageUltimate.dll) Version: 5.8.7
C#
public Location CacheLocation { get; set; }

Property Value

Location

See Also