Stale cache handling with a persistent object cache

Lets say you are doing an update_option() and because of some temporary network glitches updating the value in Redis/Memcached fails and you end up with a stale cache for a specific option key. The core APIs does not seem to care about the response from wp_cache_set() and they move forward with the rest of the process. Then the subsequent updates could delete or revert that option value in DB and that could have major consequences for the app depending on what that option value is used for. How do you handle this? How is this handled in large-scale WP setups? Anything that can be improved in core?

I want to add string array to this function to filter displayed option in drpodown

WordPress wpallimport plugin This filter allows modifying the option shown in the options type dropdown for import The function is as follow: I want to add $custom_types as string array. function wpai_custom_types( $custom_types ) { // Modify the custom types to be shown on Step 1. $custom_types = array("woocommerce orders" , " posts") // Return … Read more