Package org.craftercms.engine.cache
Interface SiteCacheWarmer
- All Known Implementing Classes:
SiteCacheWarmerImpl
public interface SiteCacheWarmer
Helper class that's used to warm up the cache of a site context.
- Since:
- 3.1.4
- Author:
- avasquez
-
Method Summary
Modifier and TypeMethodDescriptionvoidwarmUpCache(SiteContext siteContext, boolean switchCache) Warms up the cache for the specified site context.
-
Method Details
-
warmUpCache
Warms up the cache for the specified site context. IfswitchCacheis true, then a new cache is created, warmed up and then switched with the current cache of the site.- Parameters:
siteContext- the site contextswitchCache- if a new cache should be warmed and then switched with the current cache
-