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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
warmUpCache(SiteContext siteContext, boolean switchCache)
Warms up the cache for the specified site context.
-
-
-
Method Detail
-
warmUpCache
void warmUpCache(SiteContext siteContext, boolean switchCache)
Warms up the cache for the specified site context. IfswitchCache
is 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
-
-