mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #19959] [MERGED] fix: user group pagination reset and model image caching #64268
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/19959
Author: @silentoplayz
Created: 12/15/2025
Status: ✅ Merged
Merged: 12/21/2025
Merged by: @tjbck
Base:
dev← Head:fix/issue-19885-group-users-and-model-image📝 Commits (1)
cd953cbfix: user group pagination reset and model image caching📊 Changes
2 files changed (+12 additions, -6 deletions)
View changed files
📝
backend/open_webui/routers/models.py(+10 -4)📝
src/lib/components/admin/Users/Groups/Users.svelte(+2 -2)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. Not targeting thedevbranch will lead to immediate closure of the PR.Changelog Entry
Description
This PR fixes two separate bugs reported in issue #19885:
profile/imageendpoint, unless cache were manually reset for the page usingCTRL+F5a few times.Added
Cache-Control: no-cache, must-revalidateheaders to theget_model_profile_imageendpoint to prevent serving stale cached avatars. During my testing, the model's avatars (when set or changed) would update after a page refresh instead of necessitating a reset of the page's cache.Changed
group_id (membership status)tocreated_at (newest first). This prevents the list from re-ordering immediately when a user's membership status toggles.setSortKeyinUsers.svelteto reset pagination to page 1 only when the sort order is explicitly changed by the user.Removed
page = 1reset in thetoggleMemberfunction inUsers.svelteto preserve the admin's current page while selecting users.Fixed
Additional Information
Related Issue: #19885
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.