嗨我正在使用wicket并且当两页打开时让页面过期而我试图在另一页之后提交 有没有办法在wicket 6.8中支持getPageSettings()。setAutomaticMultiWindowSupport(true)
答案 0 :(得分:0)
你要知道你的网页会有多大,以及你并行多少个会话。我认为您的页面大小(序列化)大于maxSizePerSession
,因此只有最后一页存储在磁盘上。
您可以略微调整IPageStore
设置(但这会增加您的资源使用量):
/**
* Sets the maximum number of page instances which will be stored in the application scoped
* second level cache for faster retrieval
*
* @param inmemoryCacheSize
* the maximum number of page instances which will be held in the application scoped
* cache
*/
void setInmemoryCacheSize(int inmemoryCacheSize);
/**
* Sets the maximum size of the {@link File} where page instances per session are stored. After
* reaching this size the {@link DiskDataStore} will start overriding the oldest pages at the
* beginning of the file.
*
* @param maxSizePerSession
* the maximum size of the file where page instances are stored per session. In
* bytes.
*/
void setMaxSizePerSession(Bytes maxSizePerSession);