Site creation performance
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.
#1 Updated by Boone Gorges 8 months 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.