Webinoly is just the perfect tool for NGINX experts. Give it a try!
0 votes
2.8k views
by Talented
This is the first time I have installed Webinoly although I have installed and maintained hundreds of EasyEngine sites, so I admit to being a Webinoly noob.

Theirs is a central Redis server configuration which is available to all sites on the VPS, so there's an obvious difference there I think.

But, when I used the NginX Helper installed purge on EasyEngine I found it actually purged the cache of all the sites URLs. Not so with Webinoly.  With Webinoly I had to use `sudo webinoly -clear-cache` to delete the site's cache and allow Gtmetrix to see the site's updated URLs and measure the site's performance.  

Is this normal, or have I missed something?
by Talented
I think I should just add that, apart from this minor aggravation, I am very impressed with this project and amazed that Cristhian has been able to do it by himself.  Maybe that just proves the rule that "too many cooks spoil the broth" and small teams can be much more productive.
by Talented
edited by
I thought I had found the problem, that the Redis server did not appear to be running but its not Redis that is the problem. The purge_cache set up by the NginX Helper plugin doesn't seem to be working.

1 Answer

+1 vote
by Expert
selected by
 
Best answer

Hi Terence,

It sounds like Nginx-Helper plugin is not configured properly, please be sure you have followed the instructions displayed after cache was enabled.

Nginx Helper Plugin has been installed!
Please, activate this plugin for a better experience with FastCgi Cache.
** IMPORTANT - Plugin Settings **
- The “Caching Method” should be set to “Nginx FastCgi Cache”.
- Support for purge/url method has been disabled because it is considered a security risk.
- The Purge Method should be set to “Delete local server cache file”

Regards

by Talented

Hi Cristhian,

So the only way to clear the Redis cache is by issuing the `sudo webinoly -clear-cache=all` command, is that correct?

Terence.

by Expert
The "Redis Cache" plugin is installed when cache is enabled in Webinoly for your WordPress site, this plugin is recommended and have the option to "Flush Cache".

In your WordPress admin dashboard just go to "Settings > Redis" and you will see the "Flush Cache" button.

Regards.
by Talented
I know that of course, from EasyEngine, but I guess its because I am still expecting something similar to their more integrated cache control and not use to seeing separate controls for FastCGI, Redis and WordPress Object cache. That would seem to be sub-optimal to me because, when you have a page or fragment which is being cached ~ but shouldn't be ~ you don't really want to be searching two separate systems to find the culprit. But maybe that's just me misunderstanding. I'll go and do some reading about FastCGI and Redis and try to get it straight in my noddle.  Thanks for your help so far.
by Talented
Redis is a data structure server that can be used as a database server on its own, or paired with a relational database like MySQL to speed things up. Redis can be configured as a cache for WordPress to alleviate the redundant and time-consuming database queries used to render a WordPress page. The result is a WordPress site which is much faster, uses less database resources, and provides a 'tunable' persistent cache.

Nginx FastCGI module has an Nginx directive for caching dynamic content that are served through PHP backend. When a web page is cached, repeated requests for the same page by web clients is quickly returned by the webserver because the page is coming from a cached location.

Instead of the webserver compiling all the dynamic data that makes up the page, before returning it to the web clients on each request, a page is cached as a whole, and then the webserver doesn’t have to fetch dynamic data before returning that page to web clients.

So, I think I understand it. The primary difference between FastCGI and Redis is in what gets cached. Using Redis with WordPress will cache the results of common database queries and speed the display of a page. The FastCGI cache instead caches the whole page after it's been generated. Neither is necessarily better than the other as it's more a matter of what works best for your particular use case, right?
by Expert
The short answer is, YES, you are right with your final conclusion.

Redis and FastCGI are different things, Redis is for Object Cache (database queries) and FastCGI is for page cache, that's why they are separated in Webinoly.

EE has a "custom" implementation to use Redis for page cache too, that's the cause why may be confusing. Personally, I don't recommend this kind of solutions and that's why this feature is not adopted in Webinoly, maybe in a multi-server environment, but that's a completely different story.
by Talented

I was still having problems with the homepage -- when I logged out it wouldn't show and all I could see was the navigation. Until I ran this command I couldn't see any content. 

sudo site example.com -cache=off
by Expert
WordPress with FastCGI and Redis is maybe the most common and most used configuration in Webinoly, I have a lot of sites running with this configuration and I'm pretty sure everything is working fine, at least at server side.

You should see if some plugin or theme you are using may be causing a conflict. Or maybe you should try a different browser, sometimes weird behaviors are cached in your browser.
by Talented
I don't mean to say I think its broken, just different from what I am used to. This kind of unexpected result can be very hard to track down when you are looking for it and most often gets 'fixed' when you're not; as a result of fixing something else probably. I use Chromium on Ubuntu mostly, but sometimes Chrome, Safari or Firefox but I get pretty much the same results with each.
Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

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

...