why is SQLSession.hasEntry not using the directory cache?

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 votes

1 answers

1148 views

ANSWER



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.

1 votes