Make WordPress Core

Opened 10 years ago

Last modified 2 years ago

#36881 assigned enhancement

Improved hot-wiring of set_found_posts

Reported by: spacedmonkey Owned by: pbearne
Priority: normal Milestone:
Component: Query Version:
Severity: normal Keywords: has-patch needs-unit-tests
Cc: Focuses: performance

Description

Currently you can filter posts_request and posts_result to hot wiring the query object add caching. However, this means that in many cases the set found posts method then never gets called. This means that found posts is un-filterable. The set found posts needs to be called after the post results filter.

Attachments (1)

36881.patch (2.4 KB ) - added by spacedmonkey 10 years ago.

Download all attachments as: .zip

Change History (7)

@spacedmonkey
10 years ago

#1 @spacedmonkey
10 years ago

  • Keywords has-patch has-unit-tests added

#2 @spacedmonkey
10 years ago

  • Keywords needs-unit-tests added; has-unit-tests removed

This ticket was mentioned in PR #6529 on WordPress/wordpress-develop by @pbearne.


2 years ago
#4

#5 @pbearne
2 years ago

will need some more tests

#6 @pbearne
2 years ago

  • Owner set to pbearne
  • Status newassigned
Note: See TracTickets for help on using tickets.