Special Sitecore config files

Abstract

The CommerceServer.SwitchMasterToWeb.config and CommerceServer.Processing.config files.

SCpbCS comes with two special config files, CommerceServer.SwitchMasterToWeb.config and CommerceServer.Processing.config, which are used to enable or disable specific functionalities for different Sitecore roles.

The CommerceServer.SwitchMasterToWeb.config config file works the same as the Sitecore SwitchMasterToWeb.config to disable all functionality around the master database so that the Sitecore instance can become a Content Delivery server. This means disabling all dataprovider and search indexes around the master database for SCpbCS.

The CommerceServer.Processing.config file is used for Processing server roles. When setting up a Processing server role, disable all other config files except for this. The CommerceServer.Processing.config file registers a pipeline processor in the Initialize pipeline, which registers types with MongoDB that may have been serialized into MongoDB via xDB.

Sitecore evaluates config files alphabetically, with files in the root of the Include folder being read first, followed by all of the files in the sub folders. The CommerceServer.SwitchMasterToWeb.config must be evaluated after all SCpbCS files and any files developed by 3rd parties. Therefore, if you create your own config files, and these files are listed alphabetically after the CommerceServer folder, you should take the CommerceServer.SwitchMasterToWeb.config out of the CommerceServer folder and add it into a folder named “Z”, so that the file will be evaluated last.