[wp-trac] [WordPress Trac] #37687: Multisite - Enormous number of update queries during site creation (user roles)
WordPress Trac
noreply at wordpress.org
Wed Feb 19 08:40:58 UTC 2025
#37687: Multisite - Enormous number of update queries during site creation (user
roles)
-------------------------------------------------+-------------------------
Reporter: fliespl | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future
| Release
Component: Networks and Sites | Version:
Severity: normal | Resolution:
Keywords: good-first-bug needs-testing has- | Focuses: multisite,
patch | performance
-------------------------------------------------+-------------------------
Comment (by sainathpoojary):
> Possible idea: instantiate wp_roles with use_db false during blog
creation and force saving roles data into database after populate_roles();
function.
Hey @swissspidy,
I have implemented the suggested solution in the PR. Please have a look
whenever you have a moment.
Thank you!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37687#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list