Opened 3 years ago
Closed 3 years ago
#60379 closed defect (bug) (invalid)
Deleted users still show in count?
| Reported by: | inder93 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Database | Version: | 6.4.2 |
| Severity: | critical | Keywords: | needs-refresh needs-testing |
| Cc: | Focuses: | ui, administration, multisite, coding-standards |
Description
I had around 6000 users on my multisite network. I deleted 4500 users directly from database with these SQL queries.
DELETE from wp_users where ID IN (1,2,3,....);
DELETE from wp_usermeta where user_id IN (1,2,3,....);
I checked from database, users are deleted successfully but in WordPress dashboard it still showing 6000 counts. When I search deleted user, it's not showing I think there is an issue with user count please let me know how to fix this.
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hello @inder93.
It is not recommended to delete database tables directly. You should call
wp_delete_sitedirectly. There are a number of caches that are cleared when calling this function. To fix your issue, I would flush object caches or maybe callclean_blog_cache.