You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2011/06/01 22:48:48 UTC
[jira] [Updated] (WICKET-3759) Touch the page only when it is just
read from the page store
[ https://issues.apache.org/jira/browse/WICKET-3759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov updated WICKET-3759:
------------------------------------
Attachment: WICKET-3759.patch
The suggested patch
> Touch the page only when it is just read from the page store
> ------------------------------------------------------------
>
> Key: WICKET-3759
> URL: https://issues.apache.org/jira/browse/WICKET-3759
> Project: Wicket
> Issue Type: Improvement
> Components: wicket-core
> Affects Versions: 1.5-RC4
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
> Attachments: WICKET-3759.patch
>
>
> Currently PageProvider#getPageInstance() "touches" the page for each call, i.e. schedules it to be persisted at the end of the request life. This always goes to PageAccessSynchronizer#touchPage() and respectively #lockPage().
> With the suggested patch this will be done at most once per PageProvider#getPage().
> This change causes some tests related to error pages to fail. The problem is that ALWAYS_REDIRECT is used for error pages thus REDIRECT_TO_RENDER strategy which expects the page to be stored before the redirect. Changing it to AUTO_REDIRECT leads to the default REDIRECT_TO_BUFFER to be used and the problem is solved because the response is buffered in the special map and the page is not needed after the redirect.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira