Reset cache before and after patch