Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The purpose of this operation is to refresh all caches, or specific caches listed in CommerceCache entity fields, or specific Commerce caches.
Syntax
var updateCaches = new CommerceUpdate<CommerceEntity>("CommerceCache");
updateCaches.SearchCriteria.Model.Properies["Name"] = "AllCaches";
CommerceResponse response = OperationService.ProcessRequest(base.GetCurrentRequestContext(), updateCaches.ToRequest());
Parameters
Parameter |
Description |
|---|---|
Name |
Required. This specifies the cache to be refreshed. For a list of names see Commerce Foundation CommerceCache. |
Operation Sequence Components
Operation Sequence Component |
Description |
|---|---|
CacheRefreshProcessor |
Refreshes the cache or category of caches identified by the CommerceCacheName property. |
Related Operations
None.
Return Value
None.
Exceptions
The following faults can be thrown from during this operation:
GeneralOperationFault - Indication the CommerceCache.Name property was not specified, or an attempt was made to refresh the ProfileCache in a shared context mode.
ItemDoesNotExistFault - Indication that cache with specified name doesn't exist
See Also
Other Resources
Working with Commerce Foundation Caches
Commerce Foundation CommerceCache