{"id":4626,"date":"2014-03-30T14:03:37","date_gmt":"2014-03-30T14:03:37","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/targetting-profile-collection-of-common-programming-errors\/"},"modified":"2014-03-30T14:03:37","modified_gmt":"2014-03-30T14:03:37","slug":"targetting-profile-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/targetting-profile-collection-of-common-programming-errors\/","title":{"rendered":"Targetting Profile-Collection of common programming errors"},"content":{"rendered":"<p>msdate,<\/p>\n<p>I don&#8217;t think there&#8217;s any way to configure the profiles system cache.\u00a0 (It&#8217;s not an available cache to configure in Web.config).\u00a0 If you are using ASP.Net membership and the Content Selection Framework within your site, these have a dependency on Commerce Server&#8217;s profile system as well.<\/p>\n<p>If you&#8217;re not using sticky sessions, you can possibly use a client cookie to refresh the cache on your web server.\u00a0 For example, if the client registers on Server A at 4:00 PM, save a cookie with the current date and time the user&#8217;s machine.\u00a0 If the client then connects to Server B, check the client&#8217;s cookie data against the cache date of the server.\u00a0 If the date time on the cookie is greater than that cache datetime on the server, expire the server&#8217;s cache.\u00a0 This might give you\u00a0a performance hit, but no worse of a hit then you&#8217;d take if you altogether stopped using profile caching.<\/p>\n<p>I&#8217;m actually not even sure if it&#8217;s possible to expire the profile cache, but that&#8217;s a pretty common mechanism for expiring caches.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>msdate, I don&#8217;t think there&#8217;s any way to configure the profiles system cache.\u00a0 (It&#8217;s not an available cache to configure in Web.config).\u00a0 If you are using ASP.Net membership and the Content Selection Framework within your site, these have a dependency on Commerce Server&#8217;s profile system as well. If you&#8217;re not using sticky sessions, you can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4626","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4626"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4626\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}