If you know about NGINX and servers, Webinoly is for you!
0 votes
121 views
by Talented

Hi,

I set -cache=off on a website and noticed that I also had to manually deactivate Nginx Helper and Redis Object Cache plugins. It would be nice if they could be automatically deactivated upon setting -cache=off. 

It's no big deal, but it would be a nice convenience.

By the way, this could be easily done with WP-CLI. In fact, I believe that with WP-CLI Webinoly could automatically set the appropriate settings to those two plugins upon activation when setting -cache=on for the first time (see wp option).

1 Answer

0 votes
by Expert
  • WP-CLI is out of the scope of this project.
  • We can adjust any plugin settings without wp-cli, but we don't do it because it's out of the scope of this project.
  • I'm more on the side of remove these plugins, maybe Webinoly should not install these plugins to avoid this kind of confusion, it's just a recommendation for a better experience with FastCGI and Redis, they are just optional.
  • Webinoly should not touch anything more than the core server stack, we try to keep this project delimited by this idea.
  • We are not against WP-CLI is just that people can install it very easily when they need it, most people don't need it.
by Talented

Hi,

my comment wasn't about adding WP-CLI per se. I don't really mind at all since installing it is just a matter of a few seconds (copy/pasting 3-4 commands). I just mentioned it as an easy and safe way for Webinoly to modify options on a WP installation. If Webinoly installs a few plugins, it would make sense taking care of their appropriate settings as well.

In general, I am not against the approach that you describe. In fact, I would prefer to have an option to an ever more lightweight installation, with phpMyAdmin,  backup tools and datahog being optional addons (I don't use phpMyAdmin at all so I remove it right away and I use backupPC for the server updates, so I don't need the backup functionality either). I would, however, like the idea of having the option to add such functionality in the form of extra "addons", with support for tools that can be challenging to setup correctly, like Monit, fail2ban etc. But that's an entirely different discussion I guess.

Returning to the discussion about the two plugins, you mentioned that their use is optional. Does it mean that I could remove them while having -cache=on and my site would keep working as expected? What I thought that they do was that they make sure that the cache gets purged everytime a post or page gets modified and that without them I would have to manually purge it from command-line. Is this true or am I completely misunderstanding it?

by Expert
Yes, you are right about how the plugins work with cache, except for Redis that a plugin is mandatory to work with WP. In small sites there's no problem, but imagine a very big site with high traffic, if you purge the entire cache can cause a ton of visits to uncached pages hitting de database.

And yes, we are moving in that direction of having a more lightweight stack, some ideas are on the roadmap.
by Talented
Thank you for the clarification.

In that case, I believe that installing those plugins automatically is a good decision. A website's content could change anytime by more than one editor, so without a mechanism to automatically clear the cache in a sane way, caching could easily become a problem.
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.

Donations

Webinoly Support Paypal Donations Webinoly Support Bitcoin Donations GitHub Sponsors

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.

...