New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Nginx-Apache-WP Rocket

Started by Steff, January 08, 2022, 07:17:14 PM

Previous topic - Next topic

Steff

I'm just after a general opinion from anyone who may have run a mix like Nginx and Apache with a Wordpress plugin WP Rocket.
I'm asking as I get a little volatile response from cache now and then and find that I have to clear cache on server side as well as plugin often.
My knowledge of server side caching is limited and I'm keen not to be overdoing the cache setup.
Is there a better way... or is the setup I have ok?

iraqiboy90

you can use nginx -> apache on CWP. Install a PHP, preferebly PHP FPM 7+ with redis and opcache
Install W3 Total cache plugin on wordpress and use a mix or redis and opcache with the plugin.
Configure redis and opcache first before starting using them on opcache.

I use Nginx - Apache with PHP 7.4 (caching modules: redis and opcache) + W3 total cache plugin. On top of that, I'm using gzip and other caching in htaccess and on top of that, I have it on Cloudflare.

I did notice that using varnish will be too aggressive if you have opcache as well. So, don't enable varnish.

Steff

Thanks that's really helpful.

I did have the server setup for Varnish, but have just set back to Nginx-Apache because, as you said, it was too aggressive. Fast!, but way too volatile.
I'm using PHP-FPM 7.3 and wondered what advantage php 8 might bring to the table.

iraqiboy90

Quote from: Steff on January 08, 2022, 08:13:40 PM
Thanks that's really helpful.

I did have the server setup for Varnish, but have just set back to Nginx-Apache because, as you said, it was too aggressive. Fast!, but way too volatile.
I'm using PHP-FPM 7.3 and wondered what advantage php 8 might bring to the table.

I'm no expert, but I would say you can wait with 7.3 or 7.4 and only change your domain to php 8 if you really need it or 7.4 is eol.

Steff

Sound advice, you've been very helpful. Thanks again  :)

iraqiboy90

Quote from: Steff on January 08, 2022, 08:42:58 PM
Sound advice, you've been very helpful. Thanks again  :)

you are welcome