Dynamics Portals: The most useful caching tip I found so far

By | August 31, 2018

I’ve been struggling with portal caching lately – I would update some data in Dynamics, and that change would not be reflected on the portal right away. Unfortunately, there are times when this behavior is just not acceptable since it may lead to all kind of negative feedback from the portal users.

And, then, it seems that an ultimate solution presented itself in the form of this tip of the day:

https://crmtipoftheday.com/784/some-finesse-in-portal-cache-resets/

I am not talking about publishing all customizations or about invalidating the cache.. I’m talking about the Change Tracking option:

image

Enable it on the entity, publish all.. Refresh the cache as described here:

https://docs.microsoft.com/en-us/dynamics365/customer-engagement/portals/clear-server-side-cache

Maybe refresh it twice. And, then, enjoy the results. To be fair, it seems that, occasionally, some data may still be cached “incorrectly”, at least that’s the impression I got so far. Still, in 9 out of 10 cases it seems to be working once that change is in place.

I’d really love this tip to be mentioned in the portal documentation..

Leave a Reply

Your email address will not be published. Required fields are marked *