core icon indicating copy to clipboard operation
core copied to clipboard

Need a cache for APILocator.getLanguageAPI().getLanguages()

Open jtesser opened this issue 11 years ago • 4 comments

its called here and in other places.

This needs to be cached and dealt with properly with invalidations as languages are removed and added

https://github.com/dotCMS/core/blob/master-3.1/src/com/dotmarketing/velocity/VelocityServlet.java#L1230

jtesser avatar Feb 13 '15 20:02 jtesser

the method is here https://github.com/dotCMS/core/blob/master-3.1/src/com/dotmarketing/portlets/languagesmanager/business/LanguageFactoryImpl.java#L152

jtesser avatar Feb 13 '15 20:02 jtesser

so in addition to the commits above we need a unit test here.

jtesser avatar Feb 13 '15 21:02 jtesser

@erickgonzalez as we discussed can you write a unit test shere put in cache remove etc...

jtesser avatar Feb 17 '15 15:02 jtesser

Working as expected. Tested on: 3.1 Nightly build 2015-02-21 21:54 // Ubuntu 14.04 // MySQL // Firefox & Chrome

shaydotcms avatar Feb 23 '15 20:02 shaydotcms