I recently moved a client to a new server and some visitors reported not seeing new posts. I clicked on the 'Delete Cache' button and it appeared to be successful, but it didn't actually delete the cache. I had to go in and reset the permissions on the cache folder for it to work.
So, the code shouldn't assume that the cache directory is writable. If it isn't able to write to it, it should display an error.