Wicket, page stack, and memory usage

前端 未结 2 1664
南旧
南旧 2021-02-06 16:20

A Wicket application serializes and caches all pages to support stateful components, as well as for supporting the back button, among other possible reasons. I have an applicati

2条回答
  •  遇见更好的自我
    2021-02-06 16:30

    In order to avoid Session choke due to continuous stacking of byte-stream due to serialization in a session and memory usage piling , you can use detachable models by using hooks to arrange for their own storage and restoration at the beginning of each request cycle , this way you have complete control over models containing byte-stream of pages not required in the session or navigable through 'Back' button.

提交回复
热议问题