cancel
Showing results for 
Search instead for 
Did you mean: 

why is SQLSession.hasEntry not using the directory cache?

Dean_McQuiston
Champ in-the-making
Champ in-the-making
I have noticed that SQLSession.getEntry is hitting the directory cache while SQLSession.hasEntry appears to be hitting the database with a query.  Is this by design and if so why isn't hasEntry also using the cache?
1 REPLY 1

Florent_Guillau
World-Class Innovator
World-Class Innovator

Nuxeo does this because hasEntry is often used to take decisions where the cache being out of date (in cluster mode) would be a problem. However we know the current situation is not ideal and will review this in the future. By using cross-instance cache invalidation which will make the cache usable at all times.