Hibernate version: 3.2.2.ga
EhCache version: 1.3.0
Name and version of the database you are using:Oracle 10g
When I load a page in my application and click F5 to reload the same page (refresh), EhCache reports lots of cache hits. But if I click on a link that refreshes the same page (not F5 but a href-link), EhCache starts caching all the elements again and reports almost no cache hits. I can't figure out why.
My domain object uses filtering in addition to caching. Maybe the filtering is interfering with the caching somehow?
Class example:
Code:
@Entity @Table(name="Code") @Immutable
@Cache(usage=CacheConcurrencyStrategy.READ_ONLY)
@FilterDef(name="codeLanguage", parameters={ @ParamDef( name="languageCode", type="java.lang.String") })
@Filter(name="codeLanguage", condition="codeISOID = :languageCode")
public class Code ....
Suggestions much appreciated.
-K