[ 
https://issues.apache.org/jira/browse/WICKET-6061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15083261#comment-15083261
 ] 

Andrea Del Bene commented on WICKET-6061:
-----------------------------------------

`Packages.absolutePath(scope, name)` was called twice: once in the constructor 
and  another one inside `exists` method

> Improved PackageResource#getCacheKey
> ------------------------------------
>
>                 Key: WICKET-6061
>                 URL: https://issues.apache.org/jira/browse/WICKET-6061
>             Project: Wicket
>          Issue Type: Improvement
>    Affects Versions: 7.1.0, 8.0.0-M1
>            Reporter: Andrea Del Bene
>            Assignee: Andrea Del Bene
>             Fix For: 7.2.0, 8.0.0-M1
>
>
> Method 'getCacheKey' (which is called multiple times for each request) 
> indirectly calls internalGetResourceStream to check if package resource 
> exists. For this purpose we should use instead static method 'exists', which 
> is lighter than internalGetResourceStream.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to