• Resolved Norman Cates

    (@normancates)


    I’ve been setting up UM, and it’s pretty good.

    BUT, I have found that UM does not update when user information is changed.

    ie If an admin, or user, or another plugin, changes the name fields (as you would get to from the admin section. ie the default WordPress user info page) then those changes are not reflected in UM account information.

    This really needs to be accounted for in some way.

    Also, it seems very odd to be storing the names, ( and presumably also the email address?) in another database. Why not just use them and update them into the standard WP fields…

Viewing 9 replies - 1 through 9 (of 9 total)
  • @normancates

    UM is caching user profile information for better performance.

    In the UM Dashboard you have a clear user cache button.
    You can turn off this caching in:
    UM -> Settings -> Misc -> “Disable Cache User Profile”

    Other plugins updating UM user profile info should include code to clear the UM user profile cache.

    • This reply was modified 3 years, 10 months ago by missveronica.
    Thread Starter Norman Cates

    (@normancates)

    You mention that:

    Other plugins updating UM user profile info should include code to clear the UM user profile cache.

    I don’t understand that statement. Other plugins would just be updating the user profile fields.

    And indeed the user or the admin could change that information in the WP admin pages.

    None of them are updating the UM user profile cache. UM is creating the cache. Why would other plugins be responsible for the UM cache?

    @normancates

    I said:

    You can turn off this caching in:
    UM -> Settings -> Misc -> “Disable Cache User Profile”

    but it will cost you longer response times.

    It’s a very simple addition for other plugins to be compatible with UM user caching and clear the UM cache after updating user info.

    Make this requirement clear to your other plugin developers.
    Plugin conflicts are resolved according to user requirements by most plugin developers.

    Many plugin descriptions have long lists of other plugins which they are compatible with and they get increased plugin usage values.

    And indeed the user or the admin could change that information in the WP admin pages.

    You have the UM Clear Cache button for those updates by an admin:

    In the UM Dashboard you have a clear user cache button.

    • This reply was modified 3 years, 10 months ago by missveronica.
    • This reply was modified 3 years, 10 months ago by missveronica.
    • This reply was modified 3 years, 10 months ago by missveronica.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @normancates

    When a profile is updated by the profile owner or administrator, the cache will be removed and regenerate again to update the information with the cache.

    Here are the action hooks that trigger the clear user cache:

    add_action( 'um_after_user_updated', array( &$this, 'remove_cache' ) );
    add_action( 'um_after_user_account_updated', array( &$this, 'remove_cache' ) );
    add_action( 'personal_options_update', array( &$this, 'remove_cache' ) );
    add_action( 'um_when_role_is_set', array( &$this, 'remove_cache' ) );
    add_action( 'um_when_status_is_set', array( &$this, 'remove_cache' ) );
    add_action( 'um_delete_user_hook', array( &$this, 'remove_cached_queue' ) );
    add_action( 'um_delete_user', array( &$this, 'remove_cache' ), 10, 1 );
    add_action( 'um_after_user_status_is_changed_hook', array( &$this, 'remove_cached_queue' ) );
    

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hey there!

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. …Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

    Thread Starter Norman Cates

    (@normancates)

    So what I’m hearing here is that there’s no way for you to hook a change to user profile fields that may be done by another plugin.

    I’m quite surprised that there wouldn’t be a “on change” condition for the profile fields that could be hooked by UM to clear the cache.

    I’m not a plug-in developer but it seems quite unreasonable to me for UM to expect any other plugin that does anything with the profile fields to implement your actions.

    Other plugins seem to be able to pick up that there has been a change to the profile fields and run their own actions to update where it needs to.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @normancates

    The hooks above can be used by other plugin developers to attach their own functions. We’ve over a hundred hooks to extend the UM functionalities.

    Regards,

    @normancates

    I’m not a plug-in developer but it seems quite unreasonable to me for UM to expect any other plugin that does anything with the profile fields to implement your actions.

    Using hooks among plugins is the only available solution and the best today with current version of WordPress. The other plugins can delete the cache for the updated user id if UM is present. UM must be seen as the main plugin and the owner of user meta data for login/profiles/member lists etc and plugins with other usage must adopt to this environment you have in your configuration.

    So what I’m hearing here is that there’s no way for you to hook a change to user profile fields that may be done by another plugin.

    I’m quite surprised that there wouldn’t be a “on change” condition for the profile fields that could be hooked by UM to clear the cache.

    Current version of WordPress is not designed for a MyQSL/MariaDB user meta changed fields feature.

    Other plugins seem to be able to pick up that there has been a change to the profile fields and run their own actions to update where it needs to.

    Most plugins read the item each time an item is required from the usermeta table so there is no caching being used and the plugin will see all the changes at the next user call.

    • This reply was modified 3 years, 10 months ago by missveronica.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hey there!

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Ultimate Members not seeing changes to User information’ is closed to new replies.