What does the Refresh Commerce Cache button exactly?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
What does the "Refresh Commerce Cache" button in the Sitecore Content Editor exactly do?
Does it perform a REST call on the XC9 Commerce Engine?
And if so, what would be the call (in Postman)?
sitecore-commerce
add a comment |Â
up vote
1
down vote
favorite
What does the "Refresh Commerce Cache" button in the Sitecore Content Editor exactly do?
Does it perform a REST call on the XC9 Commerce Engine?
And if so, what would be the call (in Postman)?
sitecore-commerce
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
What does the "Refresh Commerce Cache" button in the Sitecore Content Editor exactly do?
Does it perform a REST call on the XC9 Commerce Engine?
And if so, what would be the call (in Postman)?
sitecore-commerce
What does the "Refresh Commerce Cache" button in the Sitecore Content Editor exactly do?
Does it perform a REST call on the XC9 Commerce Engine?
And if so, what would be the call (in Postman)?
sitecore-commerce
sitecore-commerce
asked 3 hours ago


Joost
3367
3367
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
4
down vote
I've decompiled the RefreshCacheCommand in the Sitecore.Commerce.Engine.Connect.dll assembly and apparently it clears the cache of the commerce data provider and then sitecore master and web databases:
CatalogRepository.DefaultCache.Clear();
CatalogRepository.MappingEntries = (ConcurrentDictionary<string, string>) null;
EngineConnectUtility.RefreshSitecoreCaches("master");
EngineConnectUtility.RefreshSitecoreCaches("web");
When the sitecore process starts, the commerce data provider retrieves the catalog from the commerce engine and caches it internally (In the mapping entries). Clearing the cache will clear these entries and the data provider will refresh the catalog.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
I've decompiled the RefreshCacheCommand in the Sitecore.Commerce.Engine.Connect.dll assembly and apparently it clears the cache of the commerce data provider and then sitecore master and web databases:
CatalogRepository.DefaultCache.Clear();
CatalogRepository.MappingEntries = (ConcurrentDictionary<string, string>) null;
EngineConnectUtility.RefreshSitecoreCaches("master");
EngineConnectUtility.RefreshSitecoreCaches("web");
When the sitecore process starts, the commerce data provider retrieves the catalog from the commerce engine and caches it internally (In the mapping entries). Clearing the cache will clear these entries and the data provider will refresh the catalog.
add a comment |Â
up vote
4
down vote
I've decompiled the RefreshCacheCommand in the Sitecore.Commerce.Engine.Connect.dll assembly and apparently it clears the cache of the commerce data provider and then sitecore master and web databases:
CatalogRepository.DefaultCache.Clear();
CatalogRepository.MappingEntries = (ConcurrentDictionary<string, string>) null;
EngineConnectUtility.RefreshSitecoreCaches("master");
EngineConnectUtility.RefreshSitecoreCaches("web");
When the sitecore process starts, the commerce data provider retrieves the catalog from the commerce engine and caches it internally (In the mapping entries). Clearing the cache will clear these entries and the data provider will refresh the catalog.
add a comment |Â
up vote
4
down vote
up vote
4
down vote
I've decompiled the RefreshCacheCommand in the Sitecore.Commerce.Engine.Connect.dll assembly and apparently it clears the cache of the commerce data provider and then sitecore master and web databases:
CatalogRepository.DefaultCache.Clear();
CatalogRepository.MappingEntries = (ConcurrentDictionary<string, string>) null;
EngineConnectUtility.RefreshSitecoreCaches("master");
EngineConnectUtility.RefreshSitecoreCaches("web");
When the sitecore process starts, the commerce data provider retrieves the catalog from the commerce engine and caches it internally (In the mapping entries). Clearing the cache will clear these entries and the data provider will refresh the catalog.
I've decompiled the RefreshCacheCommand in the Sitecore.Commerce.Engine.Connect.dll assembly and apparently it clears the cache of the commerce data provider and then sitecore master and web databases:
CatalogRepository.DefaultCache.Clear();
CatalogRepository.MappingEntries = (ConcurrentDictionary<string, string>) null;
EngineConnectUtility.RefreshSitecoreCaches("master");
EngineConnectUtility.RefreshSitecoreCaches("web");
When the sitecore process starts, the commerce data provider retrieves the catalog from the commerce engine and caches it internally (In the mapping entries). Clearing the cache will clear these entries and the data provider will refresh the catalog.
answered 3 hours ago
Jonne Kats
4644
4644
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f14235%2fwhat-does-the-refresh-commerce-cache-button-exactly%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password