Rebuild cache before sending the notification