@Component public class

SoyCacheFlusher

extends Object
implements DisposableBean InitializingBean
java.lang.Object
   ↳ com.atlassian.jira.soy.SoyCacheFlusher

Class Overview

Capable of flushing a soy cache in a single bound. Temporary measure until Atlassian Cache can coordinate plugin cache flushing.

Summary

Public Constructors
SoyCacheFlusher(EventPublisher eventPublisher, SoyTemplateRenderer soyTemplateRenderer)
Public Methods
void afterPropertiesSet()
void destroy()
boolean flushSoyCache()
Attempts to flush the cache in the SoyTemplateRenderer.
@EventListener void onClearCache(ClearCacheEvent event)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.beans.factory.DisposableBean
From interface org.springframework.beans.factory.InitializingBean

Public Constructors

public SoyCacheFlusher (EventPublisher eventPublisher, SoyTemplateRenderer soyTemplateRenderer)

Public Methods

public void afterPropertiesSet ()

Throws
Exception

public void destroy ()

Throws
Exception

public boolean flushSoyCache ()

Attempts to flush the cache in the SoyTemplateRenderer.

Returns
  • true only if the request was successfully sent without exception.

@EventListener public void onClearCache (ClearCacheEvent event)