WordPress.org

Ready to get started?Download WordPress

Forums

amr users
[resolved] Cacheing problem (4 posts)

  1. jmahony
    Member
    Posted 1 year ago #

    Hi,

    I wonder if you can help.

    I'm having a caching problem, each time a user is added or edited the changes are not reflected on the back or front end. Is it possible to call your plugins cacheing function every time a user is added or modified?

    I was thinking about hooking into
    delete_user
    set_current_user
    profile_update
    profile_personal_options
    personal_options_update

    Do you think this would solve the issue?

    Regards,

    Josh

    http://wordpress.org/extend/plugins/amr-users/

  2. anmari
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Josh,

    the plugin does already have that as an option. Please check your cache settings and Read carefully:
    http://wpusersplugin.com/3458/cacheing-amr-users/

    One can request cache updates and it will then trigger on
    add_action('profile_update','amr_user_change');
    add_action('user_register','amr_user_change');
    add_action('deleted_user','amr_user_change'); // also for wpmu
    add_action('added_user_meta','amr_user_meta_change');
    add_action('updated_user_meta','amr_user_meta_change');
    add_action('deleted_user_meta','amr_user_meta_change');
    add_action('make_spam_user','amr_user_meta_change');
    add_action('make_ham_user','amr_user_meta_change');
    add_action('remove_user_from_blog','amr_user_change');
    add_action('add_user_to_blog','amr_user_change');

    Note it can be dangerous (add load to your system if you have frequent users updates).

    PLease note that it does it in background report by report and you need web activity for wordpress cron to run, so sometimes it may appear to you testing that updates are not happening - use a cron manager, check the logs and stats.

  3. jmahony
    Member
    Posted 1 year ago #

    Thanks for the reply Anmari,

    I think the problem I'm running into is the list not being updated because s2member does not store its custom fields normally, therefore the list is not being updated.

    Do you know of a hook when the users custom fields are updated in s2members.

    Regards,

    Josh

  4. anmari
    Member
    Plugin Author

    Posted 1 year ago #

    Nope - you will have to ask the s2member people. If they have a hook on their update, then you can add a little site specific plugin that just does

    add_action('s2updatehook','amr_user_change');

    Alternatively, change settings to show the 'refresh' button so people can request a refresh of the user list themselves when needed
    and/or set more frequent auto update.

    OR use one of the other plugins for user data thatdoes use the wordpress hook and data they way they should be.

    I think advanced fields - something like that was one.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.