Project

General

Profile

Actions

Bug #10701

closed

Site creation performance

Added by Boone Gorges almost 6 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
Blogs (BuddyPress)
Target version:
Start date:
2018-11-14
Due date:
% Done:

0%

Estimated time:
Deployment actions:

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.

Actions #1

Updated by Boone Gorges almost 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.

Actions #2

Updated by Boone Gorges almost 6 years ago

  • Target version changed from 1.14.1 to 1.14.2
Actions #3

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.

Actions

Also available in: Atom PDF