CacheHelperCompactCache Method |
Tries to remove the specified percentage of items from the underlying cache.
The return value indicates whether compacting was performed (i.e. whether the underlying cache supports compacting).
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax public static bool CompactCache(
double percentage
)
Parameters
- percentage
- Type: SystemDouble
Percentage by which to reduce the cache size.
Return Value
Type:
BooleanReturns false if the underlying cache does not support compacting. Otherwise returns true.
Remarks
In a web site environment (
IsWebSite) on the .NET Framework platform the underlying cache is the HTTP runtime cache, which does not support compacting.
See Also