Try our conversational search powered by Generative AI!

EPiServer.Data.Cache.DefaultCacheProvider (DDS) sends unnecessary events

Found in

EPiServer.CMS.Core 11.1.0

Fixed in

EPiServer.CMS.Core 11.11.2

(Or a related package)

Created

Feb 04, 2019

Updated

Feb 18, 2019

Area

CMS Core

State

Closed, Fixed and tested


Description

The default provider (EPiServer.Data.Cache.DefaultCacheProvider) for DDS sends unnecessary events. Currently, when an item is removed from cache, the remote receiver of the event removes the event but also sends an additional remote event. When running with multiple instances, unnecessary events are sent.

There is a workaround: use another cache provider. This can be configured in web.config.
First, add a configuration section as:

  <section name="episerver.dataStore" type="EPiServer.Data.Configuration.EPiServerDataStoreSection, EPiServer.Framework.AspNet" />

Then, configure DDS to use another cache provider, like this:

 <episerver.dataStore>
    <dataStore>
      <cache defaultProvider="httpCacheProvider">
        <providers>
          <clear/>
          <add name="httpCacheProvider" type="EPiServer.Data.Cache.HttpRuntimeCacheProvider, EPiServer.Framework.AspNet" />
        </providers>
      </cache>
    </dataStore>
  </episerver.dataStore>