Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Nginx Caching Wordpress Topic is solved

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
ahmed
Posts: 3
Joined: Mon May 15, 2017 4:19 pm

Os: CentOS 6x
Web: nginx + php-fpm
Nginx Caching Wordpress
  • Quote

Post by ahmed » Fri Feb 02, 2018 3:17 pm

Guys, been searching for a while and its time to ask

how can i enable nginx caching for wordpress on vestacp
i'm running on centos 7 with nginx and php-fpm no apache

from what i've been reading there's a template for nginx caching, but how can i change to this template?

the web template i'm using is wordpress2, but nothing gets cached.

so the question remains, how can i enable caching for wordpress when i'm running on nginx+php-fpm only?
Top

noogen
Posts: 66
Joined: Thu Jan 05, 2017 9:20 pm

Re: Nginx Caching Wordpress
  • Quote

Post by noogen » Sat Feb 10, 2018 3:55 am

Since no one is responding to this and message is getting old, I'm going to take a stab at it. What kind of caching are you looking for? Static content should already be served and browser cached. php-fpm is usually pretty efficient, but if you're looking for compiled php page cache then you have two options:

1. Redis working with w3-total-cache.
Instruction: viewtopic.php?f=11&t=14647&p=63637&hilit=redis#p63637

2. fastcgi cache
This is the lesser/not common option. All I found on my search is this instruction in Russian: viewtopic.php?f=29&t=15764&p=64967&hili ... che#p64967

You can probably find better instruction online. The point here is that, non of the two options are standard template in Vesta. You want to copy/duplicate wordpress2 templates (.tpl/.stpl) and add caching to it.
Top

rhyker2u
Posts: 86
Joined: Thu Jan 19, 2017 11:46 am
Contact:
Contact rhyker2u
Website

Os: Ubuntu 17x
Web: nginx + php-fpm
Re: Nginx Caching Wordpress
  • Quote

Post by rhyker2u » Sun Mar 18, 2018 10:41 am

noogen wrote: ↑
Sat Feb 10, 2018 3:55 am

1. Redis working with w3-total-cache.
Instruction: viewtopic.php?f=11&t=14647&p=63637&hilit=redis#p63637

You can probably find better instruction online. The point here is that, non of the two options are standard template in Vesta. You want to copy/duplicate wordpress2 templates (.tpl/.stpl) and add caching to it.
Good luck with finding one. Dare say my guide is the best ;) don't just read that particular snippet but everything above it too. Do check out this tip too: viewtopic.php?f=11&t=14687

The bigger speed increases can be held by modifying php-fpm on-demand parameters. Will update my 'FTL' guide (the quoted link) accordingly one of these days. P.S. I no longer run w3-total-cache and switched to WP-Rocket or https://wordpress.org/plugins/wp-fastest-cache/ ... and Redis keeps to run fine as it has its own WP plugin.
Top

valentine
Posts: 16
Joined: Sat Sep 01, 2018 4:10 am

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: Nginx Caching Wordpress
  • Quote

Post by valentine » Sun Sep 09, 2018 7:47 pm

Try [HOWTO] FASTCGI CACHE WORDPRESS viewtopic.php?f=11&t=17516
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password