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:
- Find the naming convention for the key and clear it.
- Edit the redis.conf file.
- 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!
