Fix attribute error when cache_update_cache is not set