Skip to content

Conversation

@ivan-ottinger
Copy link
Contributor

@ivan-ottinger ivan-ottinger commented Jan 8, 2026

Related issues

Proposed Changes

  • use bundled latest WordPress version in the online mode

This PR proposal is to use the bundled WordPress for the online mode as well (not just offline mode). This way we will shorten the site creation time from approx. 37 seconds to 24 seconds (35% speed up).

One disadvantage in this approach I see is that WordPress can be released in the time between two Studio releases. This would mean users who create a new site in that period would not get the most latest WordPress version (as the bundled would be used instead).

Considering our frequent Studio releases and the performance improvement for everyone we can get, I think this is a good trade-off.

Testing Instructions

  1. Check out the PR branch and start the app with npm install && npm start.
  2. Create a new site with the latest WordPress version selected.
  3. Review the logs in terminal - the bundled WordPress should be used:
CleanShot 2026-01-08 at 12 52 39@2x
  1. Create a new site with some older WordPress version (e.g. 6.7).
  2. Review the logs in terminal - there should be no bundled version copying, the older WordPress version should be downloaded:
CleanShot 2026-01-08 at 12 53 49@2x

Creating a site using the bundled WordPress version should be generally faster.

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

@ivan-ottinger ivan-ottinger self-assigned this Jan 8, 2026
@ivan-ottinger ivan-ottinger marked this pull request as ready for review January 8, 2026 13:11
@ivan-ottinger ivan-ottinger requested review from a team, bcotrim and fredrikekelund January 8, 2026 13:12
Copy link
Contributor

@fredrikekelund fredrikekelund left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and works as expected 👍

@ivan-ottinger, I've added STU-1202 as a future follow-up to run a regular background task that updates the bundled WordPress installation. This add robustness.

Copy link
Contributor

@bcotrim bcotrim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@ivan-ottinger
Copy link
Contributor Author

Thank you for the reviews and testing, Fredrik and Bernardo!

@ivan-ottinger, I've added STU-1202 as a future follow-up to run a regular background task that updates the bundled WordPress installation. This add robustness.

Sounds good to me. 👍🏼 Thanks for creating the task!

@fredrikekelund
Copy link
Contributor

FYI, it's expected for the E2E tests to not pass. We're currently blocked by #2299 on that front

@ivan-ottinger ivan-ottinger merged commit 65c9adf into dev/studio-cli-i2 Jan 9, 2026
5 of 6 checks passed
@ivan-ottinger ivan-ottinger deleted the update/online-mode-wp-download-to-bundle-instead branch January 9, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants