Use an AppExchange product that does fingerprint scanning with native Salesforce Identity Confirmation
It helps reveal the flow of execution of your program, including results of in-between evaluations. In other words, you can see what your program is doing, and why it takes the decisions it is taking.
If something unexpected happens, the trace will show you the sequence of events that lead to it.
Cache are the temporary files that are downloaded onto your computer while going on a website, to clear this, you are getting rid of any of the cache. Not what you downloaded yourself, what the internet page downloaded for you.