This might be resolved. I added a function to my site that flushes this other plugin’s cache when profile fields update.
function flush_cache_on_user_change( $user_id ) {
wp_cache_flush();
}
// Flush on user profile update.
add_action( 'profile_update', 'flush_cache_on_user_change', 10, 1 );
// Flush on new user registration.
add_action( 'user_register', 'flush_cache_on_user_change', 10, 1 );
// Flush on user deletion.
add_action( 'delete_user', 'flush_cache_on_user_change', 10, 1 );
Hi @wilcosky,
Thanks for bringing this to our attention.
While flushing the plugin’s cache when the profile fields are updated, you can also exclude the profile page or the plugin itself from being cache.
A reliable caching plugin typically includes this functionality, as caching plugins often encounter such issues. By allowing exclusions for specific plugins or pages, these caching plugins can effectively address such situations.
I have my caching plugin ignoring profile pages. The problem ended up being that my object cache which is a separate, special type that saves data to SQLite because I can’t use other types of object cache (hosting limitation), is caching profile data. That plugin doesn’t currently have a way to ignore certain things.
So, nothing to do with this User Manager plugin, I just wasn’t 100% sure when I originally posted. But, maybe this thread will help someone in the future. Remember everyone, review your object cache if using one, not just any “normal” cache. 🤓