Wiki source code of Like Caches

Last modified by Eleni Cojocariu on 2026/08/12 16:21

Show last authors
1 Two caches sit in front of Solr: one holds the like count of an entity, the other whether a given user liked a given entity. Both are LRU caches, sized by the cache capacity of the [[Like preferences>>documentation.xs.admin.like.administer-like-preferences.WebHome]].
2
3 The API keeps them in step with the store: liking or unliking an entity drops the entries of that entity, deleting a document drops its entries, and deleting a wiki or a user empties both caches.
4
5 Writing likes straight through the Ratings API bypasses all of it and leaves stale counts behind, so go through the [[Like Java API>>documentation.xs.dev.like.java-api.WebHome]] instead.

Get Connected