How to find the naming method of key value
-
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 namedwp_usermeta
withmeta_key
asvalid
, Redis plugins may retrieve old values. How can I find this Key value or set to exclude it from caching?
SQL:SELECTmeta_value
FROMwp_usermeta
WHEREuser_id
=10 andmeta_key
=valid
;
PHP:get_user_meta( “10”, ‘valid’, true );=>Old valueCurrent 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!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to find the naming method of key value’ is closed to new replies.