You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deleting a user should only affect the entity cache of that particular user, not flush everything as a whole.
This is a real pain point if your site has loads and loads of users and their profiles have lots of fields. Deleting one user makes the site (at least related pages) slow for a while.
Steps To Reproduce
Generate or create some users
Create a view of rendered users
Visit that views page - that's to trigger entity cache creation for all of them
Inspect Database table cache_entity_user - it should now be populated
Go to admin/people, pick one user
Cancel that single account - make sure you choose "Delete the account and its content"
Actual behavior
Inspect the database - the whole cache_entity_user table is empty.
Expected behavior
One row from the cache removed, the other ones untouched.
Additional information
Backdrop CMS version: discovered in 1.29.2, but is reproducible in latest dev
The text was updated successfully, but these errors were encountered:
It turned out, the solution's actually simple. Everything's in place in function user_delete_multiple(), only the parameter for the UIDs to delete was missing.
Description of the bug
Deleting a user should only affect the entity cache of that particular user, not flush everything as a whole.
This is a real pain point if your site has loads and loads of users and their profiles have lots of fields. Deleting one user makes the site (at least related pages) slow for a while.
Steps To Reproduce
cache_entity_user
- it should now be populatedActual behavior
Inspect the database - the whole cache_entity_user table is empty.
Expected behavior
One row from the cache removed, the other ones untouched.
Additional information
The text was updated successfully, but these errors were encountered: