Updated cache clearing