ServiceNow Cleanup/cache clear

Vaibhav Ramteke
Mega Contributor

Hello,

I just found that via cache.do we do the cleanup is it possible.
what is the advantage and disadvantage.

 

Thank you

6 REPLIES 6

yashkamde
Mega Sage

Hello @Vaibhav Ramteke ,

 

Yes, cache.do is possible and often helpful during development or troubleshooting. It clears the system cache for your current application node, forcing a fresh data pull from the database.

 

AdvantagesDisadvantages
Forces UI to reflect recent configuration or update set changes immediately.Causes severe lag for all users on that node while the cache rebuilds.
Quickly resolves "stuck" states or weird UI behaviors.Only clears the node you are on, not the entire multi-node environment.
Runs instantly from the filter navigator.Disrupts business operations if used during active hours.

 

If my response helped mark as helpful and accept the solution.

Aditya_hublikar
Mega Sage

Hello @Vaibhav Ramteke ,

 

In ServiceNow, the cache.do command is a powerful developer and administrator tool used to flush or clear the system’s memory cache. This forces the instance to fetch fresh data directly from the database, rather than relying on temporarily stored information.

 

You can refer following threads for detail explanation :

https://www.servicenow.com/community/servicenow-ai-platform-articles/caching-data-to-improve-perform...

https://www.servicenow.com/community/servicenow-ai-platform-forum/what-is-done-by-cache-do/m-p/25235...

 

If this helps you then mark it as helpful and accept as solution.

Regards,

Aditya