#7120 closed enhancement (fixed)
Remove WordPress DB lookups on BuddyPress single pages
Reported by: | r-a-y | Owned by: | djpaul |
---|---|---|---|
Milestone: | 2.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Core | Keywords: | has-patch early commit |
Cc: | espellcaste@… |
Description
#WP36687 is a really interesting ticket that allows developers to bail from the WP_Query
to provide their own matches.
Since BuddyPress single pages do not rely on a WordPress page, we can remove some DB queries here.
These changes will land in WP 4.6. So maybe we can add these enhancements in 2.7.
Attachments (1)
Change History (12)
#1
@
8 years ago
- Component changed from API - Rewrite Rules to API - WordPress
- Keywords has-patch early added
- Milestone changed from Under Consideration to 2.7
#3
@
8 years ago
Have you had a change to test the performance improvements with this change?
Yes, as I note in the inline doc, it removes one DB query when you are on a user's profile or single group page.
One is better than nothing :)
#7
@
8 years ago
What does this look like in terms of backwards compatibility?
The 'posts_pre_query'
filter is going to be introduced in WordPress 4.6, so this change doesn't affect those using < WP 4.6.
#8
@
8 years ago
- Keywords commit added
Let's do it. I think the add_filter should be moved into core/actions.php, as that's the point of that file, and it'd make it clearer to other plugins what we're doing here.
#9
@
8 years ago
- Owner set to djpaul
- Resolution set to fixed
- Status changed from new to closed
In 11007:
That's an interesting change @r-a-y.
Have you had a change to test the performance improvements with this change?