add clear_cache feature