[ 
http://mifosforge.jira.com/browse/MIFOS-4557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=65586#comment-65586
 ] 

Adam Monsen commented on MIFOS-4557:
------------------------------------

Great work Stanley, thank you!

I'd recommend {{i18.messages.cacheSeconds=1}} (in local.properties).

Setting the cache seconds to 0 was causing certain pages to load *extremely* 
slowly (like, up to 30 seconds), such as home and admin. 1 second still 
provides very fast feedback, but avoids what appears to be some kind of bug in 
our code or ReloadableResourceBundleMessageSource or something.

> Enable instant reloading of messages in resource bundles
> --------------------------------------------------------
>
>                 Key: MIFOS-4557
>                 URL: http://mifosforge.jira.com/browse/MIFOS-4557
>             Project: mifos
>          Issue Type: Dev Task
>            Reporter: Adam Monsen
>            Assignee: Stanley Kwok
>             Fix For: Release G - Iteration 1, Release G
>
>         Attachments: instant_bundle_reloads.patch
>
>   Original Estimate: 4 hours
>  Remaining Estimate: 4 hours
>
> I was able to get on-the-fly reloading of messages in resource bundles 
> working by applying the attached hack. It's not fit for prod (since it uses 
> an absolute path) but we might be able to get reloading working during 
> development.
> We're already using 
> [ReloadableResourceBundleMessageSource|http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/context/support/ReloadableResourceBundleMessageSource.html]
>  (we need to because we have UTF-8 Java properties resource bundles), so by 
> changing the configuration for this class, i18n work is easier and faster.
> Maybe we could parameterize the message bundle basenames, and only have 
> cacheSeconds=0 during development (-1 otherwise).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to