public class GadgetSpecsCacheService extends Object implements InitializingComponent
TerminologyCacheClearedEvent
Constructor and Description |
---|
GadgetSpecsCacheService(com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
void |
afterInstantiation() |
void |
onTerminologyCacheClearedEvent(TerminologyCacheClearedEvent event)
This method invokes clear cache operations in proper order!!!
Change method order cautiously!!!
|
public GadgetSpecsCacheService(com.atlassian.event.api.EventPublisher eventPublisher)
public void afterInstantiation()
afterInstantiation
in interface InitializingComponent
@EventListener public void onTerminologyCacheClearedEvent(TerminologyCacheClearedEvent event)
The order is determined by cache dependency - gadget specs are retrieved from JiraI18nResolver
that cache gadget specs values as well.
Gadget plugin uses under the hood the Shinding plugins that caches the gadget specs bundle request by default for 5min. Because of that cache invalidation is eventually consistent and gadgets for the user will be refreshed after 5min.
Caches hierarchy:
JiraI18nResolver
-> Shinding URL request cache (5 min expiration timeout) -> Shinding cache org.apache.shindig.common.cache.SoftExpiringCache
(5 min expiration timeout) -> Gadget specs cache
Copyright © 2002-2022 Atlassian. All Rights Reserved.
View cookie preferences