Stops the cache directory from getting deleted.