We're currently working on a website using DXA 2 CTP2 (.NET version), with the Model Service.
Everything is working great, except when we edit a Component through XPM, we keep getting "The preview of this Page is not up to date" error/warning.
Clicking the "update preview" button doesn't fix this, the warning keeps popping up.
When looking in the session preview database, we can clearly see the correct Page content is being published to this session preview database whenever we click the "update preview" button. We also disabled any caching we could find, and we can't see any warnings or error messages in our log files.
I do recall that the new model service is using a combination of Page content and DCPs that get published through a custom resolver.
Could it be that this is the cause of our problems, or should I look at something else?
UPDATE
I disabled microservice cache as suggested, but still no luck.
I also don't think the issue is the microservice, but something else. I changed the templates to use the legacy dxa publishing, so we no longer need to rely on the DXA model microservice, but the problem persists.
I'm continuing to look into this, will update this question when I find more information.
application.yml
:spring.cache.type=none
means cache is disabled. Check alsocd_client_conf.xml
, disable cache there. As the last you can try to set 1 second for default template inehcache-cil.xml
which is used by both CIL in MS and MS itself. You need to restart MS to apply the changes.