[ https://issues.apache.org/jira/browse/TAP5-2756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thiago Henrique De Paula Figueiredo updated TAP5-2756: ------------------------------------------------------ Description: This ticket is the result of a discussion on the Tapestry mailing list about the consequences of caching page instances using soft references instead of regular ones: https://lists.apache.org/thread/5qbyg0mfscg9qj6jho9899rh4r0kz97z. The goal here is to allow the developer to define which pages should be cached as soft references (the default) or regular ones. Usage example public static void contributePageCachingReferenceTypeService( OrderedConfiguration<PageCachingReferenceTypeService> configuration) { configuration.add("VeryLarge", p -> p.equals("VeryLarge") ? ReferenceType.STRONG : null); } This would cause the page named VeryLarge to be cached using a regular, strong, non-garbage-collectable reference while leaving all other pages cached with a soft, garbage-collectable reference. was:This ticket is the result of a discussion on the Tapestry mailing list about the consequences of caching page instances using soft references instead of regular ones: https://lists.apache.org/thread/5qbyg0mfscg9qj6jho9899rh4r0kz97z. The goal here is to allow the developer to define which pages should be cached as soft references (the default) or regular ones. > Allow developers define whether a page should be cached as a soft reference > or not > ---------------------------------------------------------------------------------- > > Key: TAP5-2756 > URL: https://issues.apache.org/jira/browse/TAP5-2756 > Project: Tapestry 5 > Issue Type: Improvement > Components: tapestry-core > Reporter: Thiago Henrique De Paula Figueiredo > Assignee: Thiago Henrique De Paula Figueiredo > Priority: Minor > Fix For: 5.8.3 > > > This ticket is the result of a discussion on the Tapestry mailing list about > the consequences of caching page instances using soft references instead of > regular ones: > https://lists.apache.org/thread/5qbyg0mfscg9qj6jho9899rh4r0kz97z. The goal > here is to allow the developer to define which pages should be cached as soft > references (the default) or regular ones. > Usage example > public static void contributePageCachingReferenceTypeService( > OrderedConfiguration<PageCachingReferenceTypeService> configuration) { > configuration.add("VeryLarge", p -> p.equals("VeryLarge") ? > ReferenceType.STRONG : null); > } > This would cause the page named VeryLarge to be cached using a > regular, strong, non-garbage-collectable reference while leaving all > other pages cached with a soft, garbage-collectable reference. -- This message was sent by Atlassian Jira (v8.20.10#820010)