skip refreshing assets cache while no database is configured

fixes cc before setup finished