WordPress.org

Make WordPress Core

Opened 19 months ago

Last modified 17 months ago

#41131 reviewing enhancement

Add caching to get_adjacent_post

Reported by: spacedmonkey Owned by: johnbillion
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)

41131.patch (3.8 KB) - added by spacedmonkey 19 months ago.
41131.2.patch (3.8 KB) - added by spacedmonkey 19 months ago.

Download all attachments as: .zip

Change History (7)

#1 @spacedmonkey
19 months ago

  • Keywords has-patch has-unit-tests dev-feedback added

Patch added with tests. It is pretty simple patch.

#4 @spacedmonkey
19 months 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

#5 @johnbillion
17 months ago

  • Owner set to johnbillion
  • Status changed from new to reviewing
Note: See TracTickets for help on using tickets.