easyengine icon indicating copy to clipboard operation
easyengine copied to clipboard

Testing Redis for object-cache support

Open rahul286 opened this issue 12 years ago • 25 comments

Plugin: https://wordpress.org/plugins/wp-redis/

Please note that this is dropin plugin.

We need to check how redis works as object-cache instead of using w3tc's memcache for object-cache and database-cache.

This Redis plugin provides only object cache. We need to disable w3tc's memcache for object-cache first.

Also, we may disable w3tc's memcache for database-cache. (Personally, I always felt that database-cache feature of w3tc is somewhat misfit)

I don't see any independent database cache plugin actively developed - https://wordpress.org/plugins/db-cache-reloaded/ and https://wordpress.org/plugins/db-cache-reloaded-fix/ are both outdated.

We can start testing on our sites first. If this works, we can add it to main EasyEngine in future.

rahul286 avatar Nov 10 '14 09:11 rahul286

i tried cache buddy on one of my sites that really needs it badly and should be the exact use-case that cache buddy was made for (according to mark jaquith); it is a site that gets a lot of traffic from many users who comment extensively. it's not a buddy press site, just standard WP but the comment system is used extensively. so most of the users of the site are either logged in as contributors, or have a wp comment cookie, which makes our wonderful nginx fastcgi cache useless and makes my server work very hard on this particular site.

unfortunately, the plugin didn't work right on the site and because i have so much traffic there and the users were freaking out, i couldn't leave the plugin activated long enough to figure out what was going on. i raised an issue in mj's github repo. if i get a chance i will also try to figure it out - it could have just been a theme conflict or something like that.

pjv avatar Apr 06 '15 18:04 pjv

@pjv I just saw - http://www.slideshare.net/markjaquith/scaling-wordpress-15441095

I think that plugin makes many assumptions and a plugin/theme conflict is last thing it can tolerate.

Overall the idea is nice and I will test it on some client site. If all goes well, we may add it in EE at some point. :-)

rahul286 avatar Apr 06 '15 18:04 rahul286

yeah, i think it's a great idea to use some javascript to fill in little bits of dynamic content on a page where possible in order to make a full page cache workable for logged in users. i wonder if it could be generalized beyond just the comment form.

but it definitely didn't work in my environment as-is. logged in users did not have the comment form pre-filled with their information. my current guess is that the theme we are using probably just isn't compatible with whatever DOM element targeting the plugin uses. if that's all the problem is, should be easily solved. when i have some time, i'll take a look at it.

pjv avatar Apr 06 '15 18:04 pjv

Yep. Theme can break comment form.

rahul286 avatar Apr 06 '15 18:04 rahul286

This can be discussed further in #472

rahul286 avatar Jun 02 '18 13:06 rahul286