Click or drag to resize
CacheHelperClearCache Method (String, Boolean, Boolean)
Clears the cache content starting with given string. Clears also full page cache (including persistent) when called on website.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static void ClearCache(
	string startsWith,
	bool caseSensitive = false,
	bool logTask = true
)

Parameters

startsWith
Type: SystemString
If null, removes all cache items, if set, remove only items starting with given string
caseSensitive (Optional)
Type: SystemBoolean
Case sensitivity indicator.
logTask (Optional)
Type: SystemBoolean
Log web farm task
See Also