Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Set is_feed/feed so sitemap can be identified later in shutdown #7397
+5
−1
Conversation
donnchawp
requested review from eliorivero and dereksmart
Jun 28, 2017
dereksmart
added
Sitemaps
[Status] Needs Review
[Type] Bug
labels
Jun 28, 2017
eliorivero
added this to the
5.1
milestone
Jul 1, 2017
eliorivero
added
[Status] Ready to Merge
and removed
[Status] Needs Review
labels
Jul 1, 2017
|
thanks @donnapep! |
dereksmart
merged commit bfc70e0
into
master
Jul 1, 2017
1 check passed
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
dereksmart
deleted the
fix/make-sitemap-a-feed branch
Jul 1, 2017
eliorivero
added a commit
that referenced
this pull request
Jul 1, 2017
|
|
donnchawp + eliorivero |
0c9e922
|
|
Cherry picked to 5.1 in 0c9e922 |
This was referenced Jul 10, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
donnchawp commentedJun 28, 2017
Identify sitemaps as a "sitemap" feed for the purposes of caching or further analysis of an output buffer.
Caching plugins use output buffering to capture the page so even though the sitemap function dies immediately after the content is pushed out, the content is still captured. However, in my testing the Content-Type header was not captured (even when using
apache_get_header_listorheaders_list) in the output buffer callback. With this change the caching plugin can identify a sitemap and then use the right caching and/or content type. This is how WP Super Cache does that.See Automattic/wp-super-cache#237 for further
discussion.