(Quick Reference)

4 Grails Cache Admin Service - Reference Documentation

Authors:

Version: 3.0.2

Table of Contents

4 Grails Cache Admin Service

The plugin provides a service named GrailsCacheAdminService which supports various methods for administering caches.

4.1 Clearing Caches

There are methods in GrailsCacheAdminService for clearing the caches used by the block and render tags.

class ReportingController {

def grailsCacheAdminService

def report() { // clear the cache used by the blocks tag… grailsCacheAdminService.clearBlocksCache()

// clear the cache used by the render tag… grailsCacheAdminService.clearTemplatesCache()

… } }