HackerTrans
TopNewTrendsCommentsPastAskShowJobs

El_RIDO

no profile record

comments

El_RIDO
·há 9 meses·discuss
I can recommend the WP Super Cache plugin[0] - it can generate pre-gzipped static sites and then you can setup your webserver[1] to prefer those, or non-compressed static files and only when not in cache actually bother passing down the request into PHP.

Gives me an 97 and 88 respectively[2] on that pagespeed tool.

[0] https://wordpress.org/plugins/wp-super-cache/

[1] https://github.com/simonrupf/docker-php-wp/blob/master/etc/n...

[2] https://pagespeed.web.dev/analysis/https-bobcat-dssr-ch/0ziq... / https://pagespeed.web.dev/analysis/https-simon-rupf-net/auk5...
El_RIDO
·há 2 anos·discuss
And to add one more option to the comments (beyond [frontend] + php-fpm):

Nginx Unit https://unit.nginx.org/ - like Apache + mod_php runs as a single service, handles the multiprocessing of php (and other languages), static files, reverse proxy and even lets you configure both itself and php via a single configuration (either as a file or dynamically at runtime, via a socket): https://unit.nginx.org/configuration/#php

Here is an IRL config example: https://github.com/PrivateBin/docker-unit-alpine/blob/master...

The resulting container image can be pretty small: https://hub.docker.com/r/privatebin/unit-alpine