| Author |
Message |
Ravi Shankar
Guest
|
Posted:
Wed Jan 12, 2005 1:17 pm Post subject:
KB 887125 |
|
|
This is regarding the "FIX: The Catalog BCL CachingEnabled property is set to
false by default" recently published as KB887125.
As per the VS the correct code should be..
override Public void Init()
{
base.Init();
CommerceCatalogModule.CatalogContext.CachingEnabled = true;
}
Having done this how does one verify that Catalog Caching has indeed been
enabled ?
--
Ravi Shankar |
|
| Back to top |
|
 |
WenJun Zhang[msft]
Guest
|
Posted:
Fri Jan 14, 2005 10:03 am Post subject:
RE: KB 887125 |
|
|
Hi Ravi,
A obvious cache behavior is like: after setting CachingEnabled =
true, launch the Retail2002 site in IE first. Add/delete catalog or
change catalog properties in BizDesk. Then refresh Retail2002 site
and you should see the catalog change hasn't been updated yet.
The CatalogContext cache affects on the following items(products
change will not be cached in this case).
Category.AncestorCategoryNames
ParentCategoryNames
ChildCategoryNames
CanonicalCategoryPath
PrimaryParentCategoryName
ChildCategoriesCount
ChildProductsCount
Product.AncestorCategoryNames
ParentCategoryNames
CanonicalCategoryPath
ProductCatalog.Name
Languages
IdentifyingProductProperty
IdentifyingVariantProperty
PropertyNames
SpecificationSearchableCategories
However if you call CommerceCatalogModule.CatalogContext.Refresh() in
e.g Default.aspx to release cache, you will see any modifications are
returned immediately.
CatalogContext.Refresh Method (BCL)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csvr2
002/htm/cs_net_catalogcontext_refresh_54072.asp
Thanks.
Best regards,
WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security |
|
| Back to top |
|
 |
Ravi Shankar
Guest
|
Posted:
Tue Jan 18, 2005 7:21 pm Post subject:
RE: KB 887125 |
|
|
Thank you for the response Wen Zun.
Is it possible to create a Cache Refresh Entry for Catalogs in the
Web.Config file along the lines of others like Advertising and such OR the
CatalogContext.Refresh has to be necessarily called ?
Is there some mechanism through the Catalog Manager to execute a refresh
because as part of the FP1 Installation for BizDesk modules, it is no longer
possible to Publish Catalogs from BizDesk.
Thanks and Regards.
""WenJun Zhang[msft]"" wrote:
| Quote: | Hi Ravi,
A obvious cache behavior is like: after setting CachingEnabled =
true, launch the Retail2002 site in IE first. Add/delete catalog or
change catalog properties in BizDesk. Then refresh Retail2002 site
and you should see the catalog change hasn't been updated yet.
The CatalogContext cache affects on the following items(products
change will not be cached in this case).
Category.AncestorCategoryNames
.ParentCategoryNames
.ChildCategoryNames
.CanonicalCategoryPath
.PrimaryParentCategoryName
.ChildCategoriesCount
.ChildProductsCount
Product.AncestorCategoryNames
.ParentCategoryNames
.CanonicalCategoryPath
ProductCatalog.Name
.Languages
.IdentifyingProductProperty
.IdentifyingVariantProperty
.PropertyNames
.SpecificationSearchableCategories
However if you call CommerceCatalogModule.CatalogContext.Refresh() in
e.g Default.aspx to release cache, you will see any modifications are
returned immediately.
CatalogContext.Refresh Method (BCL)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csvr2
002/htm/cs_net_catalogcontext_refresh_54072.asp
Thanks.
Best regards,
WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security
|
|
|
| Back to top |
|
 |
WenJun Zhang[msft]
Guest
|
Posted:
Wed Jan 19, 2005 5:36 pm Post subject:
RE: KB 887125 |
|
|
Hi Ravi,
Yes, the CatalogContext.Refresh method have to be called to release
the CatalogContext cache. It's based on ASP.NET caching which is
different than the CacheManager caches used in <cache> tag. Please
take a look at the following docs.
Commerce Server 2002 Caching Techniques
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csvr2
002/htm/cs_ag_infracaching_ciqb.asp
Commerce Server 2002 - caches Tag
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csvr2
002/htm/cs_rp_netconfigsvcs_wamz.asp
Currently we cannot refresh the runtime cache in FP1's catalog
manager. I noticed actually this has been filed as a bug which will
be fixed in next version. However it should be quite simple for you
to write a little code calling BDRefresh.aspx to release the cache.
Thanks.
Best regards,
WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security |
|
| Back to top |
|
 |
|
|
|
|