Class ThresholdCacheInternationalMessageOverrideStrategy

java.lang.Object
com.broadleafcommerce.i18n.enterprise.config.service.ThresholdCacheInternationalMessageOverrideStrategy
All Implemented Interfaces:
InternationalMessageOverrideStrategy, org.springframework.core.Ordered

@Component("blThresholdCacheInternationalMessageOverrideStrategy") @Lazy public class ThresholdCacheInternationalMessageOverrideStrategy extends Object implements InternationalMessageOverrideStrategy
Default InternationalMessageOverrideStrategy. Should run last and will always return a result. Primarily supports multitenant scenarios with the following characteristics:
  • Small to medium template message catalog
  • Small to medium number of standard site overrides
  • Small or large quantity of individual standard sites
This strategy tries to efficiently cache all standard site overries and/or all template catalog messages. This is the highest efficiency settings, as all translations are cached on the app tier. However, if the override or template catalog member count exceeds the threshold, the strategy falls back to on demand queries that are cached as they occur. See InternationalMessageSupport.getThresholdForFullCache() and InternationalMessageSupport.getTemplateThresholdForFullCache() for more information on these properties and how to set their values.
Author:
Jeff Fischer
See Also: