ServiceNow Cleanup/cache clear
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello,
I just found that via cache.do we do the cleanup is it possible.
what is the advantage and disadvantage.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hello Vaibhav,
ServiceNow runs "cache.do" asynchronously in the background, so you won't see a progress bar or a popup message on your screen when it's done.
To check if the cache flush is complete, you need to look at the System Logs:
1. Navigate to "syslog.list" in the application navigator.
2. Filter the "Source" column for: "Asynchronous Cache Flusher" or look for logs containing "CacheFlush".
3. You should see a log entry stating "Starting asynchronous cache flush" when it begins, and a subsequent message saying "Finished asynchronous cache flush" or "Cache flush completed" once the process is entirely done.
Keep in mind that on large Production instances, it can take several minutes for the system to fully recompile and rebuild the cache for all elements.
Best regards,
Paweł
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
| Advantages | Disadvantages |
| 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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 :
If this helps you then mark it as helpful and accept as solution.
Regards,
Aditya