Targetting Profile-Collection of common programming errors
msdate,
I don’t think there’s any way to configure the profiles system cache. (It’s not an available cache to configure in Web.config). If you are using ASP.Net membership and the Content Selection Framework within your site, these have a dependency on Commerce Server’s profile system as well.
If you’re not using sticky sessions, you can possibly use a client cookie to refresh the cache on your web server. For example, if the client registers on Server A at 4:00 PM, save a cookie with the current date and time the user’s machine. If the client then connects to Server B, check the client’s cookie data against the cache date of the server. If the date time on the cookie is greater than that cache datetime on the server, expire the server’s cache. This might give you a performance hit, but no worse of a hit then you’d take if you altogether stopped using profile caching.
I’m actually not even sure if it’s possible to expire the profile cache, but that’s a pretty common mechanism for expiring caches.