The FPCCacheRule object represents a single cache rule. A cache rule defines cache policy for all content or specific content groups, including:
- How objects are provided from the cache.
- Whether objects should be stored in the cache.
- The size of objects that can be stored in the cache.
- Whether Secure Sockets Layer (SSL) responses will be stored in the cache.
- Whether content supplied after user authentication by the Web server will be stored in the cache.
- The configuration settings in an FPCFTPCacheConfiguration object for FTP caching.
- The configuration settings in an FPCHTTPCacheConfiguration object for HTTP caching.
This object is an element of an FPCCacheRules collection.
Click here to see the ISA Server object hierarchy.
For more information about the COM objects related to caching, see Introduction to the ISA Server Cache Objects.
InheritanceThis object inherits from the FPCPersist object, which contains methods and properties related to the persistent storage of an object's data. They include methods for exporting the object's data to and importing it from an XML document.
The FPCCacheRule object defines the following method.
|SetSizeBound||Sets the minimum or maximum size of the objects that can be cached.|
The FPCCacheRule object has the following properties.
|CacheAuthenticatedContent||Gets or sets a Boolean value that indicates whether content supplied after user authentication by the Web server or an upstream proxy server will be cached.|
|CacheBITSContent||Gets or sets a Boolean value that indicates whether content received using the Background Intelligent Transfer Service (BITS) will be cached. (This property is introduced in ISA Server 2006.)|
|CacheContentForOfflineBrowsing||Gets or sets a Boolean value that indicates whether content for offline browsing with response code 302 or 307 will be cached.|
|CacheDynamicContent||Gets or sets a Boolean value that indicates whether dynamic responses will be cached even if their headers mark them as not cacheable.|
|CacheSSLResponses||Gets or sets a Boolean value that indicates whether responses are cached when the incoming or outgoing request uses SSL.|
|Description||Gets or sets the description of the rule.|
|DestinationDomainNameSets||Gets an FPCRefs collection that contains references to the FPCDomainNameSet collections defining the domain name sets included in or excluded from the request destinations to which the rule applies.|
|DestinationSelectionIPs||Gets an FPCSelectionIPs object that specifies the complete set of destination IP addresses to which the rule applies.|
|Enabled||Gets or sets a Boolean value that indicates whether the rule is enabled.|
|FTPConfiguration||Gets an FPCFTPCacheConfiguration object that defines the configuration settings for FTP caching.|
|HTTPConfiguration||Gets an FPCHTTPCacheConfiguration object that defines the configuration settings for HTTP caching.|
|IsDefault||Gets a Boolean value that indicates whether the rule is preinstalled and cannot be deleted.|
|Name||Gets or sets the name of the cache rule.|
|NeverCacheResponse||Gets or sets a Boolean value that indicates whether responses will never be cached.|
|ObjectSizeLimit||Gets the maximum size of an object that can be cached.|
|ObjectSizeLimitEnabled||Gets a Boolean value that indicates whether the object size limit is enabled.|
|ObjectSizeLimitUnits||Gets a value from the FpcSizeUnits enumerated type that specifies the units in which the ObjectSizeLimit property is expressed.|
|Order||Gets the ordinal position of the rule in the list of cache rules, which corresponds to their order of application.|
|URLSets||Gets an FPCRefs collection that contains references to the FPCURLSet collections defining the URL sets included in or excluded from the request destinations to which the rule applies.|
|UseCacheCondition||Gets or sets a value from the FpcCacheAction enumerated type that specifies the conditions under which an object should be retrieved from the cache.|
|CancelWaitForChanges||Cancels the registration established by the WaitForChanges method (for use in C and C++ programming only).|
|CanImport||Returns a Boolean value that indicates whether the object's properties can be imported from the specified XML document.|
|Export||Recursively writes the stored values of all the properties of the object and its subobjects to the specified XML document.|
|ExportToFile||Recursively writes the stored values of all the properties of the object and its subobjects to the specified XML file.|
|GetServiceRestartMask||Retrieves a 32-bit bitmask of the FpcServices enumerated type that specifies which services need to be restarted for currently unsaved changes to take effect.|
|Import||Recursively copies the values of all the properties of the object and of its subobjects from the specified XML document to persistent storage.|
|ImportFromFile||Recursively copies the values of all the properties of the object and of its subobjects from the specified XML file to persistent storage.|
|LoadDocProperties||Provides the XML document's properties so that you can know what information can be imported from the document.|
|Refresh||Recursively reads the values of all the properties of the object and of its subobjects from persistent storage, overwriting any changes that have not been saved.|
|Save||Recursively writes the current values of all the properties of the object and its subobjects to persistent storage.|
|WaitForChanges||Registers to wait for an event indicating that the contents of the object have changed (for use in C and C++ programming only).|
|PersistentName||Gets the persistent name of the object. The persistent name of an object is a name that is unique for the object at the respective level of the COM object hierarchy.|
|VendorParametersSets||Gets an FPCVendorParametersSets collection that can hold sets of custom data for extending the object.|
This object implements the IFPCCacheRule and IFPCCacheRule2 interfaces.
|Client||Requires Windows XP.|
|Server||Requires Windows Server 2003. Requires Windows Server 2003 or Windows 2000 for ISA Server 2004 Standard Edition.|
|Version||Requires Internet Security and Acceleration (ISA) Server 2006 or ISA Server 2004.|
Declared in Msfpccom.idl.