is there any script to clear the cache of all the games I play?

From time to time I’m forced to clear the cache of GTA V and FiveM, otherwise the game gets really heavy. It was supposed to be cleared automatically, but it takes a long time.

When I clear the cache manually, the game’s performance improves a lot. It runs much smoother. With that in mind, I thought of an automatic way to do this in all the games I play. Is there any way?

I do this for GTA with a .bat file. Is there some general way to do this for all the games installed on my PC? If there is, I’d appreciate it.

I have RDR2
TLOU
FORZA
Motorfest

and many others.

you’ll also have to manually create a .bat file. In it you need to include all the exact locations where the cache is stored. And that’s for each game. But as you said, this is already done automatically, it just depends on each game. Some take longer, others take less time. It depends…