Opened 12 months ago
Closed 11 months ago
#20665 closed defect (bug) (fixed)
wp.getUsersBlogs method runs out of memory when there are too many blogs
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | XML-RPC | Version: | 3.0 |
| Severity: | normal | Keywords: | has-patch needs-unit-tests commit |
| Cc: | jbernal@… |
Description
wp.getUsersBlogs method runs out of memory when there are too many blogs. But with the proposed changes (by avoiding switch_to_blog and restore_current_blog) you can list more blogs with same amount of memory.
Attachments (2)
Change History (10)
comment:1
SergeyBiryukov — 12 months ago
- Component changed from General to XML-RPC
comment:2
SergeyBiryukov — 12 months ago
- Keywords has-patch added
- Version changed from 3.4 to 3.0
Assuming this came in with MU in 3.0.
- Keywords needs-unit-tests commit added
20665.diff includes get_home_url() and some cleanup.
comment:7
SergeyBiryukov — 11 months ago
- Milestone changed from Awaiting Review to 3.5
Note: See
TracTickets for help on using
tickets.

Yeah, the switch_to_blog() really doesn't make any sense here.