DirectoryCache invalidations in clustered setup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2018 07:58 AM
DirectoryCache uses put() function to add items to cache instead of localPut(). Using put() causes a "cacheinval" message to be sent and the key will be cleared from other nodes. When those nodes need to use the key they will do the same and clear the key from other nodes. This is not very efficient and causes a flood of inval messages.
Is this the way it's supposed to work or am I missing something?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2018 08:52 AM
What code are you talking about exactly? What class or interface would localPut
be a method of?
In recent versions of Nuxeo (since 9.3, see NXP-22786) there is only local caching with cross-cluster invalidation propagated by a pub/sub mechanism.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2018 09:20 AM
I'm sorry, I remembered the method name incorrectly. I was referring to [CacheManagement.putLocal(String key, Serializable value](https
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2018 09:32 AM
Ok I see what you mean, there's indeed a problem. I opened [NXP-25065](https
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2018 12:36 AM
Thank you for looking into this issue.
