You can inform good about updates by sending them a ‘ping’. You can do this manually, but it can also be done programmatically and then be called by cron or at the end of the script which creates your Google sitemap.

To do this you require ‘curl’ functionality within PHP.

$sitemapUrl = ‘https://www.domain.com/sitemap.xml’;
$pingUrl = ‘https://www.google.com/webmasters/sitemaps/ping?sitemap=’ . urlencode($sitemapUrl);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $pingUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$result = curl_exec($ch);

Inform Google about Sitemap updates