0 votes
by Talented
edited by

WP Rocket is a cache plugin for wordpress, many people like this solution and prefer to use it instead of the fastcgi cache.

If you have a license of the plugin and want to use it in conjunction with Nginx to avoid loading in PHP follow this simple tutorial.

1. Install and active the plugin

2. In FTP acess /var/www/YOURDOMAIN.COM and edit your wp-config.php file

  • Add this code: define('DISABLE_WP_CRON', true);
  • Note: if the plugin is already active you will see that your file has already been edited by it:

3.  Acess you ssh and add an new cronjob (to avoid php consults by wordpress)

4. Now lets begin to add nginx configs, in your ssh add this commands, one per one

5. Now, include this in your nginx  

  • In FTP acess /etc/nginx/sites-available and edit the file with your site domain
  • Add this: include rocket-nginx/default.conf;

6. Reload the nginx

  •  service nginx reload

you can check if it is caching directly through nginx (without consulting wordpress) by the site header:

source: https://github.com/maximejobin/rocket-nginx

by Expert

Thanks for your contribution! smiley


Where to find /etc/nginx/sites-available, Unable to find on my ftp.

1 Answer

0 votes
by Talented
Note: your webinoly installation must have been done without the fastcgi cache option!
Welcome to the Community site for Webinoly.

If you have a question about Webinoly, please ask in English or Spanish.

To report a bug, please ask a question here with the bug tag.

News: Now you can use any external SMTP service in your server. All the server outgoing emails from any of your websites will be sent through this service.


Webinoly Support Paypal Donations Webinoly Support Bitcoin Donations

Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.

Affiliate Links

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.