Bug #10701
closedSite creation performance
0%
Description
Performance during site creation is abysmally slow. This is largely because of database i/o: large numbers of tables need to be created and populated, and WordPress disables most object caching during the site creation process (wp_installing(true); see get_option()).
I'd like to do some experiments to mitigate this problem. For one thing, I'd like to ensure that wp_installing() is flipped back to false at the end of the core installation process. I don't believe there's any reason to have it turned on while we're cloning from the site template.
Updated by Boone Gorges about 6 years ago
- Assignee set to Boone Gorges
I've verified the wp_installing() change - it cuts the number of queries in half - and pushed it to production https://github.com/cuny-academic-commons/cac-site-templates/commit/00ab1a1e8adb716a2b20ab01f6a1e2a7b3316f43 https://github.com/cuny-academic-commons/cac/commit/80fbc6f79a057fd05630dce3aedb4953c10a801a I'll leave this ticket open to look for other obvious improvements.
Updated by Boone Gorges almost 6 years ago
- Target version changed from 1.14.1 to 1.14.2
Updated by Boone Gorges almost 6 years ago
- Status changed from New to Resolved
I've examined this and I'm not sure there's much more I can do at the moment.