Class ContentStoreServiceTreeBasedContextCacheWarmer

    • Field Detail

      • warmUpEnabled

        protected boolean warmUpEnabled
      • contentStoreService

        protected org.craftercms.core.service.ContentStoreService contentStoreService
      • descriptorPreloadFolders

        protected Map<String,​Integer> descriptorPreloadFolders
    • Constructor Detail

      • ContentStoreServiceTreeBasedContextCacheWarmer

        public ContentStoreServiceTreeBasedContextCacheWarmer()
    • 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, like PATH:DEPTH
      • warmUpCache

        public void warmUpCache​(org.craftercms.core.service.Context context)
        Warm ups the cache associate to the context
        Specified by:
        warmUpCache in interface ContextCacheWarmer
        Parameters:
        context - the context
      • getDescriptorPreloadFolders

        protected Map<String,​Integer> getDescriptorPreloadFolders()