I have some problem if I move a published page from one location to another, the URL will not directly update. So when a user comes in to the page it will link to the old location and say it not exists. My thought is that is a URL cache that not been updated when i change the location.
I using the UrlResolver when create the links. Have you some suggestion how I can fix this issues?
Is it possible to update the cache in a Content-event regarding OnMoveContentEvent?I'm using Optimizely CMS 12 (v12.11.0)
Yes you can hook into those events and then using the built in caching system you can clear / change the values have a look at this documentation for guidance.
Thank you Paul for you quick answer.Another question is what is the proper way to fix this issue? Is it to update the cache or should I use another service to resolve the URL? Regards
The cache should be updated whenever you update the page (move etc.) I think there was a bug before with cache invalidation. Let me check
I believe this might be related to bug CMS-26486 which was fixed on 12.13. however this should only occur in multi instances scenarios - i.e. if you edit in one instance and then check another instance, the cache might not be invalidated properly