If you do not explicitly set the
AppUrl property of CacheManager, CacheManager uses a built-in algorithm
to determine the URL of the current site virtual directory. This algorithm uses
the host name from the HTTP headers. Therefore, this setting is not
reliable.
The hotfix uses the following procedures to determine the
AppUrl:
- Use the server name instead of the host name.
- Change HTTPS to HTTP when the page URL uses SSL.
- Change the port to match the unsecurehost port when the
page URL uses SSL.
The default setting of the
ServerSpecificSiteUrl property uses the local computer name instead of the host from
the HTTP header of the first request to the site. Also, the nonsecure port
number that is configured for the application in the admin database is used if
it is available. If it is not available, port 80 is used.
The
ServerSpecificSiteUrl property default value includes the following syntax:
http://computername[:port]/IISApplicationPath
Note The
port value is used only if the
port for the application is located in the site resources in the Admin database
and the port number is not
80. The
ServerSpecificSiteUrl property is set to
Read/Write (previously it was read-only). If the default setting does not
work, you can set this property to override the default. Because the Discount
cache is refreshed automatically by the CommerceCacheModule, set the
ServerSpecificSiteUrl property in Application_BeginRequest so that the Discount cache
picks up the setting.
Additional InformationTo set the SiteSpecificUrl property