| 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() | |
| ... | |
| } | |
| } | |
| ---- |