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

Konrad Windszus commented on SLING-4795:
----------------------------------------

The advantage heavily depends on the number of entries which have to be 
reloaded and the resource bundle which was invalidated.
I performed a test with CQ6 and modified an entry below 
{{/libs/wcm/core/i18n/de}}.
The full reloading of all resource bundles takes 5 seconds. Only reloading the 
german entries for basename=null takes about 1.5 seconds.
The advantage becomes even more visible if you have users using two unrelated 
resource bundles in parallel because only the requests towards the invalidated 
resource is blocked.

> Only discard the ResourceBundles if they are really invalid
> -----------------------------------------------------------
>
>                 Key: SLING-4795
>                 URL: https://issues.apache.org/jira/browse/SLING-4795
>             Project: Sling
>          Issue Type: Improvement
>          Components: Extensions
>    Affects Versions: i18n 2.4.4
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>
> Currently on all changes on the JCR language nodes the full cache in 
> {{JcrResourceBundleProvider}} becomes invalid.
> Since most of the changes won't change the actual locale or basename the 
> invalidation could be improved so that only that {{JcrResourceBundle}} gets 
> invalid, which is having the same locale/basename.



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

Reply via email to