[wp-trac] [WordPress Trac] #36711: Add caching to get_page_by_path
WordPress Trac
noreply at wordpress.org
Thu Apr 28 23:27:06 UTC 2016
#36711: Add caching to get_page_by_path
-------------------------------+------------------------------
Reporter: spacedmonkey | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 2.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses: performance
-------------------------------+------------------------------
Changes (by spacedmonkey):
* keywords: => has-patch
Comment:
First pass at this patch. Pretty simple patch to get caching. The caching
method is simple to the one in the get_pages function. This cache key use
last_changed, a value set in the clean_post_cache function.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36711#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list