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 Galyna
your answer is correct.
Thanks
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?
Please change the quotes in the info. Instead of “, please use "
Please show the full error message, including the stack trace.
Hi Galyna,
When I run your code(job),I face with this error:
Try to check this link gfeaxblog.wordpress.com/.../ax-2012-clear-the-cache
A few examples:
By the way, it's really "cache", not "cash".
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.
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.
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 Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Syed Haris Shah 9
Mea_ 4
Martin Dráb 2 Most Valuable Professional