-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Problem with Cache hits and EhCache
PostPosted: Fri Aug 17, 2007 12:46 pm 
Newbie

Joined: Tue May 09, 2006 4:36 am
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.