Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a minimal Grails 3 example app #37

Open
nickdos opened this issue Dec 8, 2017 · 2 comments
Open

Provide a minimal Grails 3 example app #37

nickdos opened this issue Dec 8, 2017 · 2 comments

Comments

@nickdos
Copy link

nickdos commented Dec 8, 2017

I'm trying to implement this plugin but I'm not able to get it working. It would really help to have a minimal grails 3 application that has a working example in it. In particular I'd like to see a working ehcache.xml file.

My particular issue is, although I can see the XML config is loaded and my cache names are also loaded, I'm not actually getting caching for my annotated methods (method internals are run every time). This was working fine in Grails 2 with the older plugin.

Attempting to search for ehcache xml configuration at classpath:ehcache.xml
Configuration found at classpath:ehcache.xml
Using provided configuration
Cache names: [longTermCache, outageCache, shortTermCache]
@ghost
Copy link

ghost commented Jan 5, 2018

example of ehcache.xml
`

<cache alias="decode">
    <expiry>
        <ttl unit="minutes">30</ttl>
    </expiry>
    <heap unit="entries">1000</heap>
</cache>

`

i am using @Cacheable("decode") on a method
and have the following in application.groovy
grails { cache { ehcache { ehcacheXmlLocation = 'ehcache.xml' } } }

my ehcache.xml file is located in grails-app under conf package

@heikorm
Copy link

heikorm commented Jun 25, 2018

@ArsenBabakhanyan 's ehcache.xml file doesnt work for me. is it still the currient ehcache.xml file?
I 'm using ehcache ''org.grails.plugins:cache-ehcache:3.0.0.M1'' grails 3.3.1. Could u guys provide a complete ehcache.xml file?
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants