What does the Refresh Commerce Cache button exactly?

The name of the pictureThe name of the pictureThe name of the pictureClash 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)?










share|improve this question

























    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)?










    share|improve this question























      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)?










      share|improve this question













      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 3 hours ago









      Joost

      3367




      3367




















          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.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "664"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            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






























            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.






            share|improve this answer
























              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.






              share|improve this answer






















                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.






                share|improve this answer












                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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 3 hours ago









                Jonne Kats

                4644




                4644



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    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













































































                    Comments

                    Popular posts from this blog

                    What does second last employer means? [closed]

                    List of Gilmore Girls characters

                    Confectionery