Description
In Wicket 8 PerSessionPageStore utilized SoftReferences to build a cache of pages in cooperation with the GC.
The experts seem to agree that depending on the GC to clean up caches is a bad idea:
https://stackoverflow.com/questions/264582/is-there-a-softhashmap-in-java
http://jeremymanson.blogspot.com/2009/07/how-hotspot-decides-to-clear_07.html
Instead of replicating the old feature, the new InMemoryPageStore should allow to be customized with a map implementation. This allows applications to utilize different map-based caches, e.g. https://github.com/ben-manes/caffeine
Attachments
Attachments
Issue Links
- relates to
-
WICKET-6563 Rework page and data storage
- Resolved