[wp-trac] [WordPress Trac] #36905: Add caching to get_page_by_title
WordPress Trac
noreply at wordpress.org
Tue Sep 20 01:14:06 UTC 2022
#36905: Add caching to get_page_by_title
-------------------------------------------------+-------------------------
Reporter: spacedmonkey | Owner:
| spacedmonkey
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.1
Component: Posts, Post Types | Version: 2.1
Severity: normal | Resolution: fixed
Keywords: has-patch good-first-bug has-unit- | Focuses:
tests dev-feedback commit | performance
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"54234" 54234]:
{{{
#!CommitTicketReference repository="" revision="54234"
Posts, Post types: Cache `get_page_by_title()`.
Convert `get_page_by_title()` to a `WP_Query` wrapper to take advantage of
the object caching built in to the latter.
Add dedicated unit tests for the function `get_page_by_title()`.
Props spacedmonkey, boonebgorges, igmoweb, pcfreak30, pbearne.
Fixes #36905.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36905#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list