05-12-2017 01:53 PM
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?
05-24-2017 07:06 AM
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.