Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @macjeff,

    I think I have a solution, it worked for me…
    Add this code in functions.php, preferably in a child theme:

    // disable cache
    add_filter('nua_users_transient', '__return_false');

    // manually clear cache
    function fix_nua_status_cache_on_user_update($user_id) {
    delete_transient('new_user_approve_user_statuses');
    delete_option('new_user_approve_user_statuses_count');
    }
    add_action('user_register', 'fix_nua_status_cache_on_user_update');
    add_action('profile_update', 'fix_nua_status_cache_on_user_update');

    Hi @w-sky,

    I think I have a solution. @hamzawpexperts, please correct me if I’m wrong…
    Add this code in functions.php, preferably in a child theme:

    // disable cache
    add_filter('nua_users_transient', '__return_false');

    // manually clear cache
    function fix_nua_status_cache_on_user_update($user_id) {
    delete_transient('new_user_approve_user_statuses');
    delete_option('new_user_approve_user_statuses_count');
    }
    add_action('user_register', 'fix_nua_status_cache_on_user_update');
    add_action('profile_update', 'fix_nua_status_cache_on_user_update');

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)