Activating plugin timeout
-
Inside wp-spamshield.php, if the wordpress instance would have many users (like 50000+), then timeout is likely to occur. This is specifically to this code:
function approve_previous_users() { $user_ids = get_users( array( 'blog_id' => '', 'fields' => 'ID' ) ); foreach( $user_ids as $user_id ) { update_user_meta( $user_id, 'wpss_new_user_approved', TRUE ); update_user_meta( $user_id, 'wpss_new_user_email_sent', TRUE ); } update_option( 'spamshield_init_user_approve_run', TRUE ); }
I raised all the timeouts in my machine in order to get this through. This is not really a support request, but a note. If there’s a way to batch all the $user_id and then pass them to mysql in one go it should act faster.
Thanks for the great plugin
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Activating plugin timeout’ is closed to new replies.