steelliberty Hi I am developing a membership site and I cannot use page caching. I do want to use redis-object-caching and opcache.php. Am I correct that by creating --wp and then wo stack install --redis and --utils and then the redis-object cache plugin that I will have object caching and php code caching and no page caching? Thank you
nsgoyat steelliberty That's exactly what you need to do. For better performance, you may also use Autoptimize plugin to optimize the CSS, JS, Images, Fonts etc on your website.
steelliberty nsgoyat Thank you nsgoyat. I tried to use autoptimize but it caused a problems with the membership program called DAP -- it interfered with some of their end points -- however I am using it on another non membership site and it is very fast --
jond1 This is what I use for object caching, works great. https://github.com/pressjitsu/pj-object-cache-red/
steelliberty jond1 Hi JonD -- thank you .. I am working on a very large membership - social media site built in wp with buddyboss and dap. I read your comments about setting up a self scaling system. Do you documents or notes that you might share links or info -- 🙂 Also can you or another suggest a tried way to monitor mysql for activity and also monitor plugins for bottle necks etc .. ? Any words of wisdom would be appreciated. Thank you again.
steelliberty jond1 jond1 Hi JonD .. you suggested I should use the pj-object-cache. I installed object-cache.php and got a message "Updated object cache drop-in and enabled Redis object cache." Is this correct .. How do I know that pj-object-cache is working .. I answered a popup question that a foreign object-cache.php was detected and that I should activate .. then it reactivated the redis plugin - is this right? jond1
jond1 I use Datadog for monitoring on all our servers. I highly recommend a dedicated server just for the DB. We have EC2 servers just for frontend serving only, a CDN serves all media assets, and then we have both Redis and MySQL in dedicated instances within AWS.
steelliberty jond1 that sounds like a solution that will scale and fast. Thank you -- I need experience separating front resources from the db with the db on a separate machine(s) -- regarding this wo nginx redis setup -- is it correct to assume that it ready to install the pj-object-cache already (after installing redis) -- just by installing the object-cache.php file and removing the redis plugin?
mdoooooot jond1 I highly recommend a dedicated server just for the DB. We have EC2 servers just for frontend serving only, Do you install Wordops on both the DB server and the frontend servers too? Can you explain in a little more detail? As long as the DB server and frontend server are in the same datacenter then latency should not be a problem?
jond1 @mdoooooot I run all services on separate servers. This also helps ensure no single service can take out the entire cluster. @steelliberty Monitoring Redis stats is one way monitor. Looking at the cache rates. Also, check out Query Monitor, helps monitor all activity for the page being loaded.
mdoooooot jond1 I run all services on separate servers. This also helps ensure no single service can take out the entire cluster. Sorry, does this mean you install WOrdops on all servers and then delete the services you don't need (eg delete nginx from DB server) or something else? I am assuming you use Wordops somehow.
jond1 @steelliberty to answer an earlier question, yes, drop in that plugin and remove the existing Redis plugin.
jond1 I install WordOps for Nginx only, then use it to create, delete sites, etc. I use Remote MySQL for this reason. I do not install MySQL or Redis through WordOps.
nsgoyat DanielR Yes, you should remove the Redis Object Cache plugin and then add the Pressjitsu's object-cache.php to /wp-content/
nsgoyat They don't have a full-fledged plugin yet. Pressjitsu made a blog post when they released their Object Cache drop-in. Although they had mentioned that the plugin will be released on the WP repository but it has been 2 years and still no plugin. However, a plugin isn't really needed for this as long as the drop-in works fine.
steelliberty jond1 I found out that the that I needed the Redis-Object plugin and that Pressjitsu drop in was recognized by the redis plugin and noted in the Diagnostics as "Drop-ins: [ "Redis Object Cache Drop-In v2.0.15 by Till Krüss" ]" Without the plugin I got redis-server error messages in the nginx log (which I do not remember now what they were) -- but when I put the plugin back and it recognized the drop-in the error messages stopped .. I see the redis-server running -- do you think the cache is not properly installed ?
JackyKrak jond1 Hi there, I followed your advice and installed pj-object-cache-red. I just run a simple one-server site, but want to learn more than that. I would be most grateful if you could address some of my concerns, stupid as they may be: Do I need to modify the object-cache.php file for it to work? I mean do I need to specify WP_REDIS_BACKEND_HOST, WP_REDIS_BACKEND_PORT, and WP_REDIS_BACKEND_DB or open some ports? How do I control the cache, e.g. flush it? Does it work with wp-cli (wp cache)? I have installed phpRedisAdmin, but there is not much in it other than a list of keys and basic local server run-down. How do you test and optimise the cache?