Kentico MVC culture issue

Petline developer asked on October 28, 2019 17:29

I have a multi culture website on Kentico MVC version 12, and I have some odd behaviour. In my website I have english and French, the issue is on the French.

When I view the page in the browser I don't see my French changes, but when I click the "Preview URL" under the "general tab" I do see the changes.

Can someone please advise for solution?

Thanks

Recent Answers


Dmitry Bastron answered on October 28, 2019 18:13

Hi,

Do you have output cache enabled? It could have been an issue with invalidating it.

0 votesVote for this answer Mark as a Correct answer

Petline developer answered on October 28, 2019 18:19 (last edited on October 28, 2019 18:24)

Yes I have output cache enbled

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on October 28, 2019 18:23

It's done via code, check out the documentation.

If you have it enabled the system caches the HTML output of the page. And when something is changed in the CMS you need to invalidate this cache otherwise you'll see outdated HTML.

0 votesVote for this answer Mark as a Correct answer

Petline developer answered on October 28, 2019 18:41

Thank you, but my question is why do I need to do that from the code if it already enabled under the system setting in Kentico, isn't that suppose to do this?

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on October 29, 2019 09:42

Because your MVC is completely separate and different application build by you. Kentico can't clear the cache in another application not build by them.

If you set the cache dependencies mentioned by Dmitry you basically tell your application to listen or check for that button (and other cache clearing events from Kentico).

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.