Automattic / Automattic/aggregator

Stop using switch_to_blog()

Open
#13 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
PHP
Stars
21
Forks
6
PR merge metrics
No merged PRs in 30d

Description

For large/high-traffic sites, switch_to_blog() just isn't going to cut the mustard. We need Another Way.

My immediate thought is to use custom WP-API endpoints, but that relies on WP-API being adopted into core which will happen.... one day.... far in the future.... maybe.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the code paths that call switch_to_blog() and review how the aggregator synchronises posts across the multisite network. Investigate whether custom WP-API endpoints are available or suitable, and define a replacement approach that supports large, high-traffic sites without relying on switch_to_blog().

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.