1

I'm trying to access the value in core.json file which is under BinaryData folder. Below is the way I'm trying to retrieve the value:

${requestScope.localization.getResource('core.keyname')}

But application doesn't retrieve the latest value when it changed in the core Component. But changes are reflected in the core.json.

May I know what could be the issue?

2
  • Do I understand you correctly that you do get a value back, but it's not the latest data from the file? If so, it might simply be cached. – Peter Kjaer Dec 10 '20 at 9:57
  • @PeterKjaer Thanks for your quick response. May i know where is the cache setup? – SandiriVenky Dec 10 '20 at 10:12
4

As the json file is updated I assume you did a publish of the 'Publish Settings' Page.

Afterwards, you need to call the Admin Refresh endpoint /admin/refresh so that the website loads the new value. You do that by loading the {WebsiteBaseUrl}/admin/refresh url in your browser, where WebsiteBaseUrl is the url of your website.

1
  • Yes, Even after i did the admin refresh, faced the same issue. – SandiriVenky Dec 11 '20 at 6:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.