As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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?
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.
hasEntry