Package org.craftercms.engine.cache
Class ContentStoreServiceTreeBasedContextCacheWarmer
- java.lang.Object
-
- org.craftercms.engine.cache.ContentStoreServiceTreeBasedContextCacheWarmer
-
- All Implemented Interfaces:
ContextCacheWarmer
public class ContentStoreServiceTreeBasedContextCacheWarmer extends Object implements ContextCacheWarmer
ContextCacheWarmerthat performs warm up at theContentStoreServicelevel by preloading a list of folder trees.- Since:
- 3.1.4
- Author:
- avasquez
-
-
Field Summary
Fields Modifier and Type Field Description protected org.craftercms.core.service.ContentStoreServicecontentStoreServiceprotected Map<String,Integer>descriptorPreloadFoldersprotected booleanwarmUpEnabled
-
Constructor Summary
Constructors Constructor Description ContentStoreServiceTreeBasedContextCacheWarmer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Integer>getDescriptorPreloadFolders()voidsetContentStoreService(org.craftercms.core.service.ContentStoreService contentStoreService)Sets the content store servicevoidsetDescriptorPreloadFolders(String[] descriptorPreloadFolders)Sets the list of descriptor folder trees to preload in the cache.voidsetWarmUpEnabled(boolean warmUpEnabled)Sets if warm up is enabledvoidwarmUpCache(org.craftercms.core.service.Context context)Warm ups the cache associate to the context
-
-
-
Method Detail
-
setWarmUpEnabled
public void setWarmUpEnabled(boolean warmUpEnabled)
Sets if warm up is enabled
-
setContentStoreService
public void setContentStoreService(org.craftercms.core.service.ContentStoreService contentStoreService)
Sets the content store service
-
setDescriptorPreloadFolders
public void setDescriptorPreloadFolders(String[] descriptorPreloadFolders)
Sets the list of descriptor folder trees to preload in the cache. Each folder can have it's depth specified after a colon, likePATH:DEPTH
-
warmUpCache
public void warmUpCache(org.craftercms.core.service.Context context)
Warm ups the cache associate to the context- Specified by:
warmUpCachein interfaceContextCacheWarmer- Parameters:
context- the context
-
-