mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #10809] [MERGED] feat: update get_current_user to refresh last active timestamp asynchronously #9393
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/10809
Author: @TobiasGoerke
Created: 2/26/2025
Status: ✅ Merged
Merged: 2/26/2025
Merged by: @tjbck
Base:
dev← Head:feat/update_timestamp_asynchronously📝 Commits (1)
76891f4feat: update get_current_user to refresh last active timestamp asynchronously📊 Changes
1 file changed (+5 additions, -2 deletions)
View changed files
📝
backend/open_webui/utils/auth.py(+5 -2)📄 Description
Updating the users' last activity asynchronously has significant performance implications.
It allows users to be authenticated with two less db queries to be waited for.
For a page reload, this means there's 40-60 fewer queries waited for.
In my setup, page load time have decreased about 45%.
Please see https://github.com/open-webui/open-webui/discussions/10808 for more info.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.