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()
...
}
}
5 The Cache Admin Service
Version: 6.3.0
Table of Contents
5 The Cache Admin Service
The plugin provides a service named GrailsCacheAdminService which support various methods for administering caches.
5.1 Clearing Caches
There are methods in GrailsCacheAdminService for clearing the caches used by the block and render tags.