Class FlushCacheAction

java.lang.Object
org.apache.struts2.ActionSupport
All Implemented Interfaces:
WebInterface, MessageHolderAware, Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.locale.LocaleProvider, org.apache.struts2.text.TextProvider, org.apache.struts2.Validateable

@Deprecated(since="8.8", forRemoval=true) public class FlushCacheAction extends ConfluenceActionSupport
Deprecated, for removal: This API element is subject to removal in a future version.
since 8.8, use com.atlassian.confluence.cache.rest.CacheManagementResource instead
This action allows you to trigger a flush for the system cache. It supports two modes of operation. A) Flush a specific cache, triggered by specifying a cache to flush. B) Flush all caches, indicated by not specifying a cache to flush.
See Also:
  • Constructor Details

    • FlushCacheAction

      public FlushCacheAction()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • setCache

      public void setCache(String cacheName)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • execute

      public String execute()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      execute in interface org.apache.struts2.action.Action
      Overrides:
      execute in class org.apache.struts2.ActionSupport
    • setCacheManager

      public void setCacheManager(com.atlassian.cache.CacheManager cacheManager)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isShowDistributions

      public boolean isShowDistributions()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setShowDistributions

      public void setShowDistributions(boolean showDistributions)
      Deprecated, for removal: This API element is subject to removal in a future version.