How to turn on caching?
Posted: Mon Nov 18, 2013 8:26 pm
I followed the comments in site applicationContex.xml and uncommented following section:
<!-- Delete this bean to enable caching - leaving it on for development is recommended -->
<!-- as it will allow changes made in the admin or directly on the database to be reflected -->
<!-- immediately. However, caching is obviously beneficial in production. -->
<!-- <bean id="blMergedCacheConfigLocations" class="org.springframework.beans.factory.config.ListFactoryBean">
<property name="sourceList">
<list>
<value>classpath:bl-override-ehcache.xml</value>
</list>
</property>
</bean>
-->
But it seems the queries still happen every time. I also tried to update bl-override-ehcache.xml to use meaningful caching params. Doesn't help either. There seems some other flag that I need to turn on. Please help~
Thank you!
<!-- Delete this bean to enable caching - leaving it on for development is recommended -->
<!-- as it will allow changes made in the admin or directly on the database to be reflected -->
<!-- immediately. However, caching is obviously beneficial in production. -->
<!-- <bean id="blMergedCacheConfigLocations" class="org.springframework.beans.factory.config.ListFactoryBean">
<property name="sourceList">
<list>
<value>classpath:bl-override-ehcache.xml</value>
</list>
</property>
</bean>
-->
But it seems the queries still happen every time. I also tried to update bl-override-ehcache.xml to use meaningful caching params. Doesn't help either. There seems some other flag that I need to turn on. Please help~
Thank you!