Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[-] MO gsitemap: fix incorrect lastmod
Was using date('c') or system time for all entries. Now using date_upd from DB when available: product category manufacturer supplier * no date_upd available in DB for CMS pages If no date_upd available then module already defaults to "dunno" and skips lastmod tag. This preserves priority for pages that really have been changed more recently as opposed to giving current time to media we don't even know about.
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1e3d511
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are errors in Google webmaster tools with lastmod.
The best way would be to remove the lastmod because it is optional.
1e3d511
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, apologies. There is another contributor PR to format correctly but it is not accepted due to a recent PHP version dependancy.
The least I can do is look at it again myself.
1e3d511
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1e3d511
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great solution ! Thank you !