1. Generating
Code: Select all
<changefreq></changefreq>
2. Ping URLs needs to be updated.
Code: Select all
private function ping()
{
if ($this->getValue('pingGoogle')) {
$url = 'https://www.google.com/ping?sitemap='.Theme::sitemapUrl();
TCP::http($url, 'GET', true, 3);
}
if ($this->getValue('pingBing')) {
$url = 'https://www.bing.com/ping?sitemap='.Theme::sitemapUrl();
TCP::http($url, 'GET', true, 3);
}
}