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?
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.
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 --
This is what I use for object caching, works great.
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.
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 should i install it as a plugin or just add the file in wp-content only ?
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.
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?
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?
@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.
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.
@steelliberty to answer an earlier question, yes, drop in that plugin and remove the existing Redis plugin.
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.
DanielR Yes, you should remove the Redis Object Cache plugin and then add the Pressjitsu's object-cache.php to /wp-content/
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.
Their code is a drop-in and not a plugin with any UI. It's a no-fluff code-only drop-in.
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 ?
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:
Hosted by VirtuBox