Updated cache cleaning script