How to find the naming method of key value

[ad_1]

OS:ubuntu 20.04.6
WordPress:6.4.3
Redis:2.5.0
Question:
Due to the high frequency of member updates in the database table named wp_usermeta with meta_key as valid , Redis plugins may retrieve old values. How can I find this Key value or set to exclude it from caching?

SQL:SELECT meta_value FROM wp_usermeta WHERE user_id=10 and meta_key =valid;
PHP:get_user_meta( “10”, ‘valid’, true );=>Old value

Current approach:

  1. Find the naming convention for the key and clear it.
  2. Edit the redis.conf file.
  3. Add code to exclude the table named wp_usermeta from the Redis plugin in function.php.

Recently started exploring Redis and seeking advice on viable methods. I aim to keep wp_usermeta updated with the latest values as much as possible. Thanks!

  • This topic was modified 1 hour, 6 minutes ago by Leo.Lin.
  • This topic was modified 26 minutes ago by Leo.Lin.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer