Skip to content

Add Redis and Memcached support#2554

Draft
wojtekn wants to merge 3 commits intowojtekn/add/jspi-supportfrom
wojtekn/add/redis-memcached-support
Draft

Add Redis and Memcached support#2554
wojtekn wants to merge 3 commits intowojtekn/add/jspi-supportfrom
wojtekn/add/redis-memcached-support

Conversation

@wojtekn
Copy link
Contributor

@wojtekn wojtekn commented Feb 9, 2026

Related issues

Fixes STU-1178

Proposed Changes

I propose to enable Redis and Memcached PHP extensions for all Studio sites.

Testing Instructions

Confirm:

  • Sites can be created, started, stopped, deleted
  • Redis and Memcached are now available to WordPress installations on Studio sites without UI changes.
  • Studio CLI works

Pre-merge Checklist

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

@wojtekn wojtekn changed the title Add Redis and Memcached support for all Studio sites Enable JSPI and add Redis and Memcached support Feb 9, 2026
@wojtekn wojtekn self-assigned this Feb 9, 2026
@wojtekn wojtekn requested review from a team and adamziel February 9, 2026 10:07
@wojtekn wojtekn force-pushed the wojtekn/add/redis-memcached-support branch from 2682186 to fc8c5bf Compare February 9, 2026 10:54
@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Feb 10, 2026

📊 Performance Test Results

Comparing 7156837 vs trunk

site-editor

Metric trunk 7156837 Diff Change
load 2706.00 ms 1390.00 ms -1316.00 ms 🟢 -48.6%

site-startup

Metric trunk 7156837 Diff Change
siteCreation 7097.00 ms 8107.00 ms +1010.00 ms 🔴 14.2%
siteStartup 3932.00 ms 3932.00 ms 0.00 ms ⚪ 0.0%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change

@wojtekn wojtekn changed the base branch from trunk to wojtekn/add/jspi-support February 10, 2026 13:09
@wojtekn wojtekn changed the title Enable JSPI and add Redis and Memcached support Add Redis and Memcached support Feb 10, 2026
@wojtekn wojtekn force-pushed the wojtekn/add/redis-memcached-support branch 2 times, most recently from 1e061b2 to cf0b171 Compare February 10, 2026 13:14
@wojtekn wojtekn force-pushed the wojtekn/add/jspi-support branch from 247fa61 to b1bade5 Compare February 10, 2026 13:18
@wojtekn wojtekn force-pushed the wojtekn/add/redis-memcached-support branch 2 times, most recently from d205798 to afc385b Compare February 10, 2026 13:19
@wojtekn wojtekn force-pushed the wojtekn/add/jspi-support branch from b1bade5 to 029766e Compare February 10, 2026 14:02
@wojtekn wojtekn force-pushed the wojtekn/add/redis-memcached-support branch from afc385b to 38c814f Compare February 10, 2026 14:04
Copy link
Contributor

@ivan-ottinger ivan-ottinger left a comment

Choose a reason for hiding this comment

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

All site operations still work well. I did not observe any issues with the CLI.

Regarding the reported slowdown of the site creation (+1010.00 ms | 🔴 14.2%), I run the performance test locally (3 rounds) and here are the results:

  site-editor
  ┌────────┬─────────┬─────────┬───────────────┐
  │ Metric │  trunk  │ branch  │     Diff      │
  ├────────┼─────────┼─────────┼───────────────┤
  │ load   │ 2918 ms │ 1446 ms │ -50.4% faster │
  └────────┴─────────┴─────────┴───────────────┘
  site-startup
  ┌──────────────┬─────────┬─────────┬─────────────┐
  │    Metric    │  trunk  │ branch  │    Diff     │
  ├──────────────┼─────────┼─────────┼─────────────┤
  │ siteCreation │ 7044 ms │ 7047 ms │ +3 ms (~0%) │
  ├──────────────┼─────────┼─────────┼─────────────┤
  │ siteStartup  │ 3908 ms │ 3910 ms │ +2 ms (~0%) │
  └──────────────┴─────────┴─────────┴─────────────┘

So in that front it is looking good as well. 🙂

Copy link
Member

@sejas sejas left a comment

Choose a reason for hiding this comment

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

The code looks good to me, and Sites start correctly, and I didn’t notice any performance degradation., although I’m not sure how to use Redis in my Studio sites. When installing https://wordpress.org/plugins/redis-cache/, I see the same error message as in trunk Redis is unreachable: Error while reading line from the server. [tcp://127.0.0.1:6379].

Same overview results for trunk and this branch:

Image

The plugin diagnostics show the PhpRedis is installed for this PR:

Image

Before / After Diff

Status: Not enabled
Client: 
Drop-in: Not installed
Disabled: No
-PhpRedis: Not loaded
+PhpRedis: 6.3.0
Relay: Not loaded
Predis: 2.4.0
Credis: Not loaded
PHP Version: 8.3.30
Plugin Version: 2.7.0
Redis Version: Unknown
Multisite: No
Metrics: Disabled
Metrics recorded: 0
Filesystem: Writable
WP_REDIS_PLUGIN_PATH: "/wordpress/wp-content/plugins/redis-cache"
Drop-ins: [
    "SQLite integration (Drop-in) v1.0.0 by WordPress Performance Team"
]

},
"node_modules/fs-xattr": {
"version": "0.3.1",
"hasInstallScript": true,
Copy link
Member

Choose a reason for hiding this comment

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

I think this is an unrelated change 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, removed.

@fredrikekelund
Copy link
Contributor

Redis and Memcached are now available to WordPress installations on Studio sites without UI changes

@wojtekn, how do we actually test this?

@wojtekn
Copy link
Contributor Author

wojtekn commented Feb 13, 2026

@wojtekn, how do we actually test this?

I dumped phpinfo() in the wp-config.php and confirmed the extension data is there, but based on @sejas comment shared above, it seems we need to check it it really works.

@wojtekn wojtekn marked this pull request as draft February 13, 2026 08:30
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.

5 participants

Comments