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
ContextCacheWarmer
that performs warm up at the ContentStoreService
level by preloading a
list of folder trees.- Since:
- 3.1.4
- Author:
- avasquez
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.craftercms.core.service.ContentStoreService
protected boolean
-
Constructor Summary
ConstructorsConstructorDescriptionContentStoreServiceTreeBasedContextCacheWarmer
(boolean warmUpEnabled, org.craftercms.core.service.ContentStoreService contentStoreService, String[] descriptorPreloadFolders) -
Method Summary
Modifier and TypeMethodDescriptionvoid
warmUpCache
(org.craftercms.core.service.Context context) Warm ups the cache associate to the context
-
Field Details
-
warmUpEnabled
protected boolean warmUpEnabled -
contentStoreService
protected org.craftercms.core.service.ContentStoreService contentStoreService -
descriptorPreloadFolders
-
-
Constructor Details
-
ContentStoreServiceTreeBasedContextCacheWarmer
public ContentStoreServiceTreeBasedContextCacheWarmer(boolean warmUpEnabled, org.craftercms.core.service.ContentStoreService contentStoreService, String[] descriptorPreloadFolders)
-
-
Method Details
-
warmUpCache
public void warmUpCache(org.craftercms.core.service.Context context) Warm ups the cache associate to the context- Specified by:
warmUpCache
in interfaceContextCacheWarmer
- Parameters:
context
- the context
-
getDescriptorPreloadFolders
-