Gerd,
Here is what I did in addition to the stuff in the workaround you mentioned.
I delete the transient value in the get_count_of_user_statuses function every time in order to force the value to be updated.
I edited the new-user-approve.php file as follows:
As Reads:
/**
* Get a list of statuses with a count of users with that status and save them using a transient
*/
public function get_count_of_user_statuses() {
$user_statuses = get_transient( 'new_user_approve_user_statuses_count' );
if ( false === $user_statuses ) {
$user_statuses = $this->_get_user_statuses();
set_transient( 'new_user_approve_user_statuses_count', $user_statuses );
}
return $user_statuses;
}
Should Read:
/**
* Get a list of statuses with a count of users with that status and save them using a transient
*/
public function get_count_of_user_statuses() {
$user_statuses = get_transient( 'new_user_approve_user_statuses_count' );
// ADDED THIS LINE
delete_transient('new_user_approve_user_statuses_count');
if ( false === $user_statuses ) {
$user_statuses = $this->_get_user_statuses();
set_transient( 'new_user_approve_user_statuses_count', $user_statuses );
}
return $user_statuses;
}
-
This reply was modified 7 years, 9 months ago by
leromt.
-
This reply was modified 7 years, 9 months ago by
leromt.
I am on the most recent version of the plugin and do not have this added line in my code.
I was experiencing the same issue with a stuck count… until I implemented Gerd’s fix.
This issue is still not resolved.