SXA Robots and Sitemap Cache clearers are slowing down your site!

In Sitecore.XA.Feature.SiteMetadata.EventHandlers.CacheClearerBase


protected virtual void DeleteCachesWithKeyPrefix(string prefix) => this.DeleteCaches(prefix, (Func) (key => key.StartsWith(prefix, StringComparison.OrdinalIgnoreCase)));
 protected virtual void DeleteCaches(string prefix, Func condition)
    {
      List stringList = new List();
      IDictionaryEnumerator enumerator = HttpRuntime.Cache.GetEnumerator();
      while (enumerator.MoveNext())
      {
        string str = enumerator.Key.ToString();
        if (!string.IsNullOrEmpty(str) && condition(prefix))
          stringList.Add(str);
      }
      foreach (string key in stringList)
        HttpRuntime.Cache.Remove(key);
    }


Since the prefix will always be equal to well.. the prefix. Sitecore removes all HTTP runtime caches.

Was this post any good?
This post was not helpful
This post was not helpful
This post was not helpful