I've installed lately grails cache plugin in my grails 4.0.3 application.
compile 'org.grails.plugins:cache'
I'm trying to config this to NOT clear once generated caches at application restart. This is default behavior according to the docs
My application.yml
contains this part:
grails:
cache:
enabled: true
but every time I restart my application (moving war file) caches seems to clear.
I did try to put clearAtStartup
flag in my config - didn't help.
Any help would be appreciated. Thanks in advance.
It looks like you are using the default in memory cache implementation. Since the cache is only in memory, when the application restarts the cache won't survive because the cache data is only in volatile ram.