grails not using cache <p>I've noticed a slow down on my site and after turning on <code>debug 'org.hibernate.SQL'</code> I see where the troubles are. I've set a domain class to be cached using....</p> <pre><code>class Foo{ ... static mapping ={ cache 'read-only' } String name //&lt;-- simple data type, no associations String description //&lt;-- simple data type, no associations } </code></pre> <p>My hibernate config looks like this...</p> <pre><code>hibernate { cache.use_second_level_cache=true cache.use_query_cache=true cache.provider_class='net.sf.ehcache.hibernate.EhCacheProvider' } </code></pre> <p>my query looks like this (in a web flow)...</p> <pre><code>def wizardFlow = { ... def flow.foos = Foo.list([sort:"name", order:"asc", cache:true]) // def flow.foos = Foo.findAll([cache:true]) &lt;--- same result, no caching } </code></pre> <p>I would think that either the query cache or second level cache would stop the database from being hit but my log is loaded with...</p> <pre><code>select ... from thing thing0_ where thing0_.id=? select ... from thing thing0_ where thing0_.id=? select ... from thing thing0_ where thing0_.id=? select ... from thing thing0_ where thing0_.id=? </code></pre> <p>Can anyone shed some light on what might be happening? Other queries are acting as they should!</p> <p>I'm using Grails 1.3.7</p> <p>Lastly, here is my ehcache.xml...</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ehcache.xsd" &gt; &lt;diskStore path="java.io.tmpdir"/&gt; &lt;cacheManagerEventListenerFactory class="" properties=""/&gt; &lt;defaultCache maxElementsInMemory="1000000" eternal="false" timeToIdleSeconds="3600" timeToLiveSeconds="7200" overflowToDisk="true" diskPersistent="false" /&gt; &lt;cache name="org.hibernate.cache.UpdateTimestampsCache" maxElementsInMemory="10000" timeToIdleSeconds="300" /&gt; &lt;cache name="org.hibernate.cache.StandardQueryCache" maxElementsInMemory="10000" timeToIdleSeconds="300" /&gt; &lt;/ehcache&gt; </code></pre>