Opened 8 days ago
#3681 new task (blessed)
Profile restricted Group Forum visibility checks
| Reported by: | johnjamesjacoby | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7 |
| Component: | General - Performance | Version: | trunk |
| Severity: | normal | Keywords: | |
| Cc: |
Description
BuddyPress Group Forum visibility checks reconcile restricted forums and their descendants against the current user's forum access. On sites with many restricted forums or deeply nested forum hierarchies, this may repeatedly resolve forum ancestors and capabilities during the same request.
Profile the relevant queries and capability checks using representative shallow, wide, and deeply nested forum trees. If the results show meaningful overhead, reduce repeated work with request-level caching or a more efficient traversal while preserving:
- private and hidden ancestor restrictions;
- BuddyPress membership and banned-member behavior;
- global and per-forum moderator filters;
- forums attached to multiple groups;
- independently restricted descendants; and
- the bbp_get_excluded_forum_ids filter contract.
Add performance measurements and regression coverage for any resulting change.
See [7495].
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)