Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signup query cache not invalidated when user added on multisite #10

Open
roborourke opened this issue Aug 12, 2020 · 0 comments
Open

Signup query cache not invalidated when user added on multisite #10

roborourke opened this issue Aug 12, 2020 · 0 comments
Assignees
Milestone

Comments

@roborourke
Copy link
Contributor

At the moment if a new user is added from a site on a multisite install direct from the admin (without skipping the confirmation email) they don't show up in the signups list.

Note that the first user added may appear in the list if the cache hasn't been primed yet so to reproduce you should try adding multiple new users.

The below code is a workaround I'm using for now:

add_action( 'after_signup_user', function () {
	wp_cache_set( 'last_changed', microtime(), 'signups' );
} );
@roborourke roborourke changed the title Signup Query cache not invalidated when user added on multisite Signup query cache not invalidated when user added on multisite Aug 12, 2020
@JJJ JJJ added this to the 6.0.0 milestone Mar 22, 2021
@JJJ JJJ self-assigned this Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants