Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to run WordPress in worker mode? #10

Open
nickchomey opened this issue Sep 25, 2023 · 1 comment
Open

Is it possible to run WordPress in worker mode? #10

nickchomey opened this issue Sep 25, 2023 · 1 comment

Comments

@nickchomey
Copy link

nickchomey commented Sep 25, 2023

It appears that this doesn't use Frankenphp's worker mode. If that's the case, what would be the use-case/advantage of running WordPress within frankenphp? Just that we'd be able to use it within the broader frankenphp framework to take advantage of Caddy, easy container deployment, use Mercure for websockets, perhaps develop/use other Go tools/services in the background, etc?

Also, if this is indeed this case, is at at least technically possible to run WordPress in Worker mode, but just needs some work to implement? If so, I'd be happy to contribute to that if some guidance can be provided.

@nickchomey nickchomey changed the title Does this allow for any sort of WordPress "preloading"? Is it possible to run WordPress in worker mode? Sep 25, 2023
@nickchomey
Copy link
Author

As I explore some more, this seems like something that won't be possible. It has nothing to do with frankenphp, but rather is due to WordPress just not supporting any sort of request-response model.

Here's an unmaintained effort at modifying wp core to allow for this, and is also associated with a repo for using it with swoole.

https://github.com/WordPress-PSR/request-handler

It seems that this is where any collective effort should be focused to make wp compatible with any of these modern async servers.

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

No branches or pull requests

1 participant