Clear cache on successful submit and unrecoverable error