Opened 4 years ago
Last modified 20 months ago
#41131 reviewing enhancement
Add caching to get_adjacent_post
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 2.5 |
Component: | Posts, Post Types | Keywords: | has-patch has-unit-tests dev-feedback |
Focuses: | performance | Cc: |
Description
Add caching to the get_adjacent_post function. Current the caching in the function is not persistent.
Attachments (2)
Change History (8)
#4
@
4 years ago
In 26937#comment:57 @wpdavis has a valid point about caching. It seems like we have been down the road of trying to use WP_Query in this function. This patch adds caching to an expensive sql query. This ticket should progress ahead of #26937
Note: See
TracTickets for help on using
tickets.
Patch added with tests. It is pretty simple patch.