public class

CacheResource

extends Object
java.lang.Object
   ↳ com.atlassian.jira.rest.internal.v1.CacheResource

Class Overview

Enables authorised users to manipulate and configure cache behaviour in JIRA.

Summary

Public Constructors
CacheResource(EventPublisher eventPublisher, JiraAuthenticationContext jiraAuthenticationContext, PermissionManager permissionManager)
Public Methods
Response clearCaches()
Invokes the system-wide clear cache event which should cause all caches which have subscribed to this to clear their contents completely.
Response clearClassLoaderCache()
Invokes the system-wide clear cache event which should cause all caches which have subscribed to this to clear their contents completely.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CacheResource (EventPublisher eventPublisher, JiraAuthenticationContext jiraAuthenticationContext, PermissionManager permissionManager)

Public Methods

public Response clearCaches ()

Invokes the system-wide clear cache event which should cause all caches which have subscribed to this to clear their contents completely. Typical configuration ensures that it will happen asynchronously although that is not guaranteed. Note that requests to the application after calling this may take an initial performance hit until the relevant caches are warmed up again.

The intended purpose of this is to shrink the memory usage of a JIRA instance which is not being actively used.

public Response clearClassLoaderCache ()

Invokes the system-wide clear cache event which should cause all caches which have subscribed to this to clear their contents completely. Typical configuration ensures that it will happen asynchronously although that is not guaranteed. Note that requests to the application after calling this may take an initial performance hit until the relevant caches are warmed up again.

The intended purpose of this is to shrink the memory usage of a JIRA instance which is not being actively used.