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.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntax 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