Connection String

By default, the synchronization will use the 'S4SConnString'. It is possible to run the synchronization through a separate connection string if you want UI calls to Salesforce to only use cached data in MongoDB. If running through a separate connection string, add the connection string to the ConnectionStrings file, e.g.:

<add name="M4SSynch" connectionString="S4S:user id=[username];password=[password];environment=[edition]"/>

Then specify this connection string in the Sitecore\App_Config\Include\S4S.Caching.config file:

  <sitecore>
    <settings>
      <setting name="FuseIT.Cache" value="FuseIT.M4S, FuseIT.M4S.Services.GenericMongoService"/>
      
      <!-- The connection string that is used for synchronizing. Will use S4SConnString by default if nothing is specified -->
      <setting name="FuseIT.SynchronizationConnectionString" value="M4SSynch"/>
    </settings>

    <scheduling>
      <agent name="S4SCachingScheduler" type="FuseIT.M4S.Sitecore.Agents.Synchronization" method="Run" interval="01:00:00"></agent>
    </scheduling>

  </sitecore>