object cache out of sync with database
-
I have been using this plugin for over a year on two high-ish traffic WP multisite systems.
I have noticed due to user complaints that the object cache gets out-of-sync with the database. For example – WRT plugin activation/deactivation – I have users complained that a plugin cannot be activated. wp-admin shows plugin to be deactivated and activating plugin in wp-admin does nothing. I found it was due to the redis cache being out-of-sync with the database. Redis cache shows that the plugin was deactivated; but the database shows the plugin to be activated. Manually flushing the Redis cache (either the specific key or entire cache) would “fix” the situation.
I get 2-3 reported Redis issues per month. I am sure there are a number of unreported issues. Different issues similar to above scenario, with the Redis cache being out-of-sync with the database. I am not sure how the out-of-sync happens. My guess is that we may have multiple wp-admin users updating the site; and one of the update_options() overwrites another’s setting.
I’m not sure what to do at this point. We are an Enterprise so this has to be addressed. I am thinking that a flush (single) site’s object cache feature would solve this issue. I would NOT want to flush the entire cache; we have 400+ subsites. Or I might have to try a different Redis plugin. I would really like to stick with this plugin though =)
- The topic ‘object cache out of sync with database’ is closed to new replies.