Hello nsgoyat,
it's pretty simple, on a single server I prefer to use Nginx fastcgi_cache but when I work on high-availability infrastructure I use Redis Full-page cache only because a single redis instance can be used to store full-page cache between multiple nodes.
I do not use Redis-object-cache at all, mostly because I never noticed performance improvements in WordPress backend with this extension, but I often faced issues with another plugin (VisualComposer for example) or redis resources usage was very high on sites with multiple author writing articles at the same time.
Then on very high-traffic sites, I often use WP-Rocket with Nginx fastcgi_cache to decrease server load by using to layer of cache.
Should we remove redis-object-cache plugin ?
VirtuBox The reason I would prefer to leave Redis-object cache in there, is that it is useful if you setup a site that doesn't have anything to do with Wordpress - I run a pho based forum, and use Redis for acceleration, and it works best with the object-cache settings (as far as I can tell). So, removing this would basically kill this ability.
Correct me if I'm wrong.
Hello ZinkDifferent,
I was only talking about the redis-object-cache plugin, but not about the redis stack itself.
Anyway, there isn't enough difference between the "yes" and the "no" to take a decision here.
VirtuBox Please clarify one point. Now when I create a site with the --wpredis flag, is Redis Full-page cache installed along with Redis-object-cache? I apparently read all of your documentation, but nowhere has it been clearly written about caching options. What options are what are they and how can they be combined. Indeed, compared to EasyEngine3, the available caching options have greatly increased. And this is confusing. Creating a new project with WO, I chose the option to use Redis, already known to me, but now I doubt it.
Hello Unicom3000,
thanks for reporting this information is missing in the documentation.
With the flag --wpredis
, WordOps install redis (if not already installed) and configure Nginx to use redis as full-page cache backend. Additionally, it install redis-object-cache plugin to let Redis handle Wordpress object-cache.
But if you don't enable or if you remove redis-object-cache plugin, your site will only use full-page cache in redis.
VirtuBox Thanks for making this clear to me. From the messages above, I understand that Redis-object-cache does not give any performance gain in the base case. But rather, it even spends server resources. In addition, Redis Full-page cache in comparison with Nginx cache in the case of a single server does not give any gain.
I would also like to hear your recommendations on connecting an additional cache for WordPress, if you are already using Redis Full-page cache or Nginx cache.
Unicom3000 Redis-object-cache does not improve directly site performance, but it can improve WordPress backend performance.
Then the main difference between Fastcgi_cache and Redis Full-page cache (fastcgi_cache is also a full-page cache solution) is you cannot use fastcgi_cache with redundant systems, because it would require to share fastcgi_cache path between all servers.
But if you use Redis cache or Nginx fastcgi_cache, you should not need an additional cache for WordPress, both of them are powerful caching systems which serve cached pages directly from cache without making a single request to WordPress.
Hello @VirtuBox:
VirtuBox Then on very high-traffic sites, I often use WP-Rocket with Nginx fastcgi_cache to decrease server load by using to layer of cache.
I know Wordops support creating site by using wo site create site.tld --wprocket
It would be great if you can share the method of configuration that you said "WP-Rocket with Nginx fastcgi_cache to decrease server load by using to layer of cache".
Thanks in advance.
@alexlii1971 Add this plugin https://docs.wp-rocket.me/article/61-disable-page-caching
Update site using --wpfc
Then use plugin Nginx Helper for clearing cache.
vasiler Thanks for sharing, you save my tons of time
Have a nice day.
vasiler Add this plugin https://docs.wp-rocket.me/article/61-disable-page-caching
Update site using --wpfc
Then use plugin Nginx Helper for clearing cache.
In this case, the plugin of Redis object Cache(wordpress.org/plugins/redis-cache) should be deactivated or deleted, right?
- Edited
I do not use Redis anyway. I dont know. I think you are right.
- Edited
vasiler do not use Redis anyway. I dont know. I think you are right.
Thanks, I will try this method as below on Woocommoce site:
1#Wp-rocket
2#plugin Nginx Helper for clearing cache
3# Using this plugin https://docs.wp-rocket.me/article/61-disable-page-caching
4# Update site using --wpfc
Although, I found there are so manny external connections when commercial plugin used on site, if you like, you can use Snitch(https://wordpress.org/plugins/snitch/) to monitor, and will find things like this screenshot:
http://prntscr.com/spikau
These external connections sometime caused site delay.
- Edited
I use Wp Rocket with CSS optimization feature active, I installed Snitch and I don't have those delays. They probably only appear when Wp Rocket generates static css.
vasiler They probably only appear when Wp Rocket generates static css.
Yes. sometimes, but not always.
For commercial plugins, I am just wonder whether it is safe enough for our site, any idea upon security to share please?
Thanks
wo site update example.com --ngxblocker for some security rules and Wordfence plugin (optional)
vasiler wo site update example.com --ngxblocker
Great sharing, I read docs several times, but I missed that
Thanks
- Edited
Just share what I did:
On my Woocommerce site, there are almost 5000 SKU products, and I am using the following configuration now:
nginx helper + redis-object-cache
Merge + Minify + Refresh
EWWW Image Optimizer
The speed is just ok.
After setup a site with Wp-rockect, and only one SKU one site, the speed is no so fast like what I expected.
I have not test the the following conf method yet:
alexlii1971 1#Wp-rocket
2#plugin Nginx Helper for clearing cache
3# Using this plugin https://docs.wp-rocket.me/article/61-disable-page-caching
4# Update site using --wpfc
Since I am not sure whether it is suitable for Woocommerce site, or do you think it is good method or any experience with the above configuration on Woocommerce?
Thanks