PRB: Cannot Refresh Multi-Server Web Farm Cache from the Business Desk (810873)
The information in this article applies to:
- Microsoft Solution Offering - Microsoft Solution for Internet Business
SYMPTOMSWhen you try to refresh caches from the Business Desk
(BizDesk), the refresh does not work as expected in a multiple Web server
environment.CAUSEThis behavior occurs because of a problem in the way that
the run-time data caches are registered. Among the affected caches are catalog,
profile, page profile, PCO, and campaign.RESOLUTIONTo change your code to create a cache for each server in
your multiple Web server environment, follow these steps:
- In the Global.asax.cs file, make the following changes:
- In #region Namespaces, add the following code:
using Microsoft.CommerceServer.Runtime.Targeting; using csInterop = Microsoft.CommerceServer.Interop; - In #region Data Members, add the following code:
private bool cacheAppUrlSet = false; - In public override void Init (), add the following code:
if (cacheAppUrlSet == false) { // Get cache from CommerceCacheModule.ContentSelectionContexts["Advertising"]["CacheManager"]. csInterop.Caching.CacheManager cacheManager =(csInterop.Caching.CacheManager) CommerceContentSelectionModule.ContentSelectionContexts["Advertising"]["CacheManager"]; // Set the AppUrl property. cacheManager.AppUrl = "http://" + Environment.MachineName + "/MSIB20"; cacheAppUrlSet = true; }
- Open the MSIB20.csproj file in Visual Studio .NET, and then
add a reference to CS Install
Folder\Assemblies\CacheCompLib.dll.
- Recompile the application in Visual Studio
.NET.
- Propagate Microsoft.Solutions.InternetBusiness.dll to each
Web server in the MSIB20\bin folder.
- In
BizDesk, delete all previously registered caches in Publish PCOs under Targeting, in
Publish Profiles under Profiles, and in Publish Campaigns under Campaigns (if
any).
- Visit the Web site on each server to reregister the caches.
To register the PCO cache, you must view a page that has Targeted Content - in
the sample site that is the About page.
- In BizDesk, there is now one entry per server in the
BizDesk
module lists,
instead of only one for the shared Fully Qualified Domain Name
(FQDN).
Modification Type: | Major | Last Reviewed: | 4/21/2003 |
---|
Keywords: | kbprb kbinfo KB810873 kbAudDeveloper |
---|
|