clear_cache method