Skip to content

fix : clear user cache after role update commit - #332

Open
mohammadsherif0 wants to merge 1 commit into
devfrom
feat-303-user_role_save
Open

fix : clear user cache after role update commit#332
mohammadsherif0 wants to merge 1 commit into
devfrom
feat-303-user_role_save

Conversation

@mohammadsherif0

Copy link
Copy Markdown
Collaborator

Description

Fixes #303: after assigning a role in the Users dashboard, the role disappeared on refresh because User.getAll could return a stale in-memory cache after updateUserDetails wrote user_role_matching. Cache is now cleared on transaction.afterCommit so the next load reads fresh roles.

Improvements

Clear User.cache after a successful role update commit so dashboard user rows stay in sync with user_role_matching.

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

Successfully merging this pull request may close these issues.

[BUG] manually assigned user roles are not saved

1 participant