I created custom fields for the user and a form to change these fields. Everything works fine up till this point. When I call these custom fields outside of amember, it brings the cached version of the field value till user logout and login again. Here is how I call the user values; include("amember/library/Am/Lite.php"); $user = Am_Lite::getInstance()->getUser(); echo $user['user_custom_field']; Is there any way to clear the cache after user updates his information?
So do you have these fields from aMember profile form or from your custom form? How do you change these fields exactly?
I'm looking for the same answer. I am using the aMember profile form alongside the WordPress plugin. After updating and saving from the Profile Form, the following code does not provide the updated user data: PHP: $user = am4PluginsManager::getAPI()->getUser();echo $user['user_custom_field']; After user logs out and logs back in, the correct user data is returned. This holds true for both PHP Sessions and aMember Session Mgmt.
Same problem here, the called data is only updated if the user logs out and then back in. Whats the fix for this?
This has been fixed. Fix will be available in next versions. If you need it faster, contact support and ask to provide latest version of /amember/application/default/controllers/ProfileController.php
I downloaded 4.2.11 and seen the changes in ProfileController.php but it's still not updating info I'm displaying on the main members page.