blob: b0f994a92debebb9a4d76eb181b9e5ae99f10eac [file]
There are methods in link:{api}/grails/plugin/cache/GrailsCacheAdminService.html[GrailsCacheAdminService] for clearing the caches used by the link:{tags}/block.html[block] and link:{tags}/render.html[render] tags.
[source,java]
----
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()
...
}
}
----