update cache every match