[wp-trac] [WordPress Trac] #52099: Sitemaps "Last Modified" (lastmod) tag
WordPress Trac
noreply at wordpress.org
Fri Jul 23 15:38:29 UTC 2021
#52099: Sitemaps "Last Modified" (lastmod) tag
-------------------------+-----------------------------
Reporter: junaidbhura | Owner: (none)
Type: enhancement | Status: reopened
Priority: normal | Milestone: Future Release
Component: Sitemaps | Version: 5.5
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: performance
-------------------------+-----------------------------
Changes (by swissspidy):
* keywords: has-patch has-unit-tests => needs-patch
* status: closed => reopened
* focuses: => performance
* resolution: wontfix =>
* milestone: => Future Release
Comment:
Reopening after talking to @garyillyes regarding #53740.
While Google does not currently use `<lastmod>`, other search engines
consume it to schedule crawls more effectively, saving resources and
decreasing load on sites.
It's true that we removed `lastmod` originally to keep things simple and
performant, perhaps there is some middle ground where we can add it
without much overhead.
For example, adding lastmod for posts is probably trivial, but for other
entries and especially the homepage it might not be, and we could consider
those cases plugin territory.
Expensive queries could be cached via `wp_cache_add` or similar to ensure
there's no impact on larger sites.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52099#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list