web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

how to completely clear cache?

(0) ShareShare
ReportReport
Posted on by

Hello - What steps can I take to completely clear cache from a CRM perspective? Essentially, when troubleshooting CRM, if someone asks if caching is potentially a factor then I want to be in a position to say that I systematically cleared all cache on the server, as part of the troubleshooting process?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    AFAIK there are no database persistent caches with Dynamics CRM, so an iisreset will clear the cache from the Web Client. Restarting the Email router & Async servers will clear their caches. Reporting Services has a cache that is session related, so closing and reopening the browser should clear that.

    Some CRM extensions/solutions might include their own custom caching mechanisms as well.

    There are plenty of other windows related caches (DNS resolution) - so a reboot probably would be the safest option!!

    hth,

    Scott

  • Community Member Profile Picture
    on at

    Thanks Scott - Regarding this question, one of my main points of curiosity was the first line in the error stack trace of another question I posted:

    community.dynamics.com/.../222002.aspx

    And this is the first line of the error stack trace from my previous post:

    Microsoft.Crm.Caching.OrganizationSettingsCacheLoader.LoadCacheData(Guid key, ExecutionContext context)

    Do you know what this method does?  It ultimately loads data from AD (DirectoryServices), but since the word "cache" exists in the namespace, class and method, it would be helpful for me to understand what it does so I could at least explain what this method call does in this stack trace?

  • Community Member Profile Picture
    on at

    Thanks Scott.  I'm assuming that session cache in client browsers will be invalidated when you reboot the server, can you please confirm?

  • Verified answer
    ScottDurow Profile Picture
    21 on at

    The LoadCacheData loads up lots of settings as well as some Server related AD elements - all these cache settings would be cleared with an iisreset.

    Yes- the client sessions would be invalidated with a SSRS server re-boot - in fact it will probably throw a session error if a report is refreshed. Dynamics CRM has no client side session state - it is essentially stateless. There obviously lots of client side CSS/Javascript files that are cached, and they will need to be cleared per client.

    hth

    Scott

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans