get_user_by() not working with W3 Total Cache
-
I have a custom registration form that works without caching and registered a user with a new custom user role “Wholesale”.
Whenever I register with total cache enabled, this is what I get:
https://i.prntscr.com/UXE_2hpVQCGKY2tXEfV5Ow.pngWhat am I missing here?:
$user_meta = get_userdata($user_id);
I used $user_meta = get_userdata($user_id); to retrieve the “roles” but it only works when the cache is switched off. I am not sure if the issue with caching comes from the core itself or the plugin.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘get_user_by() not working with W3 Total Cache’ is closed to new replies.