Click or drag to resize
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.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public static bool CompactCache(
	double percentage
)

Parameters

percentage
Type: SystemDouble
Percentage by which to reduce the cache size.

Return Value

Type: Boolean
Returns 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