Fixes #5056 Append new hosts to the groups cache