Make WordPress Core

Opened 4 years ago

Last modified 3 years ago

#41131 reviewing enhancement

Add caching to get_adjacent_post

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


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 4 years ago.
41131.2.patch (3.8 KB) - added by spacedmonkey 4 years ago.

Download all attachments as: .zip

Change History (8)

4 years ago

#1 @spacedmonkey
4 years ago

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

Patch added with tests. It is pretty simple patch.

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

#5 @johnbillion
4 years ago

  • Owner set to johnbillion
  • Status changed from new to reviewing

#6 @johnbillion
3 years ago

  • Owner johnbillion deleted
Note: See TracTickets for help on using tickets.