This is a comment on sitemap.xml с и без www, posted by WikiAdmin at 11/27/2025 19:18
View source for Re: sitemap.xml с и без www
Currently it does not set the timestamp for ##xml_sitemap_time >= 0##, because the time is not required, but we can set it there too.
%%(php)
<?php
if (($days = $this->db->xml_sitemap_time) <= 0)
{
// write
}
else if (time() > @$this->db->maint_last_xml_sitemap)
{
$this->db->set('xml_sitemap_update', 0, false);
$this->db->set('maint_last_xml_sitemap', time() + $days * DAYSECS);
}
else
{
$this->db->set('xml_sitemap_update', 1);
return;
}
%%