You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Ankit Agarwal (JIRA)" <ji...@apache.org> on 2016/05/03 08:53:13 UTC

[jira] [Commented] (SLING-5708) discarding ResourceBundle of all locale

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

Ankit Agarwal commented on SLING-5708:
--------------------------------------

for example

1.) Assume when user loads a page in "de" and "es" locale then resource bundle of "de" and "es" will be cached.
2.) Now if user changes a translation in "de", then only "de" specific resource bundle will be removed from cache and it will be re-loaded, resource bundle for "es" will stay cache, so when you reload page in "es" locale, resource bundle of "es" will served from cache.
3.) But user changes a translation of a locale, which is not in cache like "fr", then in this case complete cache will be discarded and all the resource bundle will be reloaded.
So if when user makes a change in a locale which is not cached (i.e a page is not have opened in this locale yet). then all resource bundle will be reloaded.


> discarding ResourceBundle of all locale
> ---------------------------------------
>
>                 Key: SLING-5708
>                 URL: https://issues.apache.org/jira/browse/SLING-5708
>             Project: Sling
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Ankit Agarwal
>
> After fix for SLING-4795 was included. 
> Only ResourceBundle of locale which has been changed will be discarded. 
> But this works this way only if, ResourceBundle of locale which has been changed is already available in ResourceBundle cache.
> If ResourceBundle cache does not have ResourceBundle of locale which has been has been , Complete Cache is discarded. Is this a correct behaviour ? 



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