Skip to content

Commit

Permalink
refetch cache
Browse files Browse the repository at this point in the history
  • Loading branch information
LennartSchmidtKern committed Oct 22, 2024
1 parent ff2ab45 commit 64a0c72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controller/user/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def get_or_create_user(user_id: str) -> User:
user_item = user.get(user_id)
if not user_item:
user_item = user.create(user_id, with_commit=True)
kratos.__refresh_identity_cache()
update_last_interaction(user_item.id)
return user_item

Expand Down Expand Up @@ -152,3 +153,4 @@ def get_mapped_sorted_paginated_users(
def delete_user(user_id: str) -> None:
user.delete(user_id, with_commit=True)
user_activity.delete_user_activity(user_id, with_commit=True)
kratos.__refresh_identity_cache()

0 comments on commit 64a0c72

Please sign in to comment.