Modified clear cache script