WordPress 6.0 to Introduce Performance Improvements for Custom Pages

WordPress 6.0 to Introduce Performance Improvements for Custom Pages

Posted by WP Tavern on March 4, 2022 at 4:07 pm
kitty kitty CATegory News
WordPress core committer Jonny Harris merged a patch into WordPress core for a 12-year-old ticket that he says has the potential to bring “a massive effect on performance for custom pages.” The change, which will be included in the upcoming 6.0 release, stops unnecessary queries when developers are using the do_parse_request filter, thanks to a refreshed patch from contributor Paul Bearne. Harris summarized the problem and how the change improves performance in the commit message: Developers of plugins and themes can use the do_parse_request filter to hot-wire requests and hook in early to render custom pages. However, even through these request may not need post queries and 404 lookups to be run, they run anyway. This can results in unnecessary SQL queries running on these requests. By adding a return value to the parse_request method of the WP class, these queries can now be skipped. WordPress core contributor Konstantin Kovshenin detailed the need for this change in a Twitter thread he published in 2021, when soliciting help for the ticket: I don't usually tweet about #SEO, but this is important. Is a static robots.txt file good for WordPress performance? Let's find out!To display the default robots.txt, a fresh WordPress install will: — Konstantin Kovshenin (@kovshenin) December 3, 2021…

…Full post on WP Tavern
Read Full

Similar Posts

Leave a Reply