Slightly safer clearing of the cache