MODX Evolution 1.2.1-beta
Manually deleting all files in the cache directory is probably the most reliable way to do it.
Yes, I have done that by a script on the hosting server (fortunately all the websites are on one web server).
Another way is clicking the button "clear the cache" from manager by http request (you need to login first to get cookies) but the aforementioned way is better in my case.