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 :

AX 2012: Clear the cache

Galyna Fedorova Profile Picture Galyna Fedorova 3,566

In this post I would like to share the job. The purpose of this job is to clear Local Cache. Every time when I see doubtful behavior, I run this job to make sure that AX is not misbehave.

static void RefreshLocalCache(Args _args)
{
xSession::removeAOC();
SysTreeNode::refreshAll();
SysFlushDictionary::main(null);
SysFlushAOD::main(null);
SysFlushData::main(null);
SysBPCheckAIFDataObject::flushCache(true);
SysFlushReportServer::main(null);
SysFlushSystemSequence::main(null);
xSession::updateAOC();
info(“ok”);
}


This was originally posted here.

Comments

*This post is locked for comments