Notifications
Announcements
No record found.
Hi ALL,
How we can clear cache such as (record cache, global object cache, browser cache, various caches in SQL Server and many more,...) with Code?
Could you please give me sample code?
*This post is locked for comments
Hi Hossein, only some caches are reachable from X++. For instance, you can remove entries from the global cache of your session, but you can't clear browser cache on the client machine.
By the way, I fixed your spelling of cache (from "cash"); using the right spelling will help you when searching for existing information on internet.
Hi Martin,
you can give a sample code for clear cashe which is access in x ++?
I want to clear cashes which is access manualy(AOT/Tools/Cashes/...)
Thanks.
A few examples:
By the way, it's really "cache", not "cash".
Try to check this link gfeaxblog.wordpress.com/.../ax-2012-clear-the-cache
Hi Galyna,
When I run your code(job),I face with this error:
Please show the full error message, including the stack trace.
Please change the quotes in the info. Instead of “, please use "
Hi Hossein,
The job in https://gfeaxblog.wordpress.com/2017/12/14/ax-2012-clear-the-cache/ works fine in my test machine. Did you build it successfully?
Hi Galyna
your answer is correct.
Thanks
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Priya_K 4
MyDynamicsNAV 2
Rahul.p 2