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 :
Finance | Project Operations, Human Resources, ...
Answered

SysGlobalCache keys existence time

(0) ShareShare
ReportReport
Posted on by 942

Hello,

I have a custom class and a method inside like this one:

Inside CheckCallFromAsterics.validateCheck() I have the following method:

And it always returns false cause globalCache doesn't contain pair (classstr(CheckCallGetFromAsterics), literalstr(run)))

When it returns false validatecheck() returns true and then globalCache is set with pair (classstr(CheckCallGetFromAsterics), literalstr(run))) in method startProcessed from above.

Method startProcessed  starts when I log in.

The question that even thoiugh I have set up pair (classstr(CheckCallGetFromAsterics), literalstr(run)))  in global cache. At next login my global cache doesn't contain this value. Does it mean global cache only exists while my user session exists and then it is eliminated?

Thanks.

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,978 Most Valuable Professional on at

    That's correct. It's just a cache in memory; it's not persisted between sessions. If you want something saved for later sessions, put it into database.

  • dark_knight Profile Picture
    942 on at

    Thank you Martin as always.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 449 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans