@Cacheable annotations options...

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

@Cacheable annotations options...

webmediauk
Hey,
Can someone point me in the right direction for conditionally caching a controller action?
I'm trying to achieve something like this:

@grails.plugin.springcache.annotations.Cacheable(value = 'javascriptControllerCache', key = 'params.id', condition = '#springSecurityService.getPrincipal() != null')

Many Thanks
Barry