mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
feat: Separate cache from user data #4556
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?
Originally created by @rasmusson on GitHub (Mar 25, 2025).
Check Existing Issues
Problem Description
Inside the /app/backend/data folder the user data resides together with a cache folder, containing embedding and audio models. This makes the size of backups of user data become unnecessarily large.
Desired Solution you'd like
The cache could instead be placed in /app/backend/cache allowing backup of only user data.
Alternatives Considered
I have found no other way on not including cache in backups as I do full volume backup and the /app/backend/data/cache folder can not be separated in its own folder when it is a subfolder of /app/backend/data
Additional Context
I previously submitted this feature request, but it was converted to a discussion without any reason specified. I think it was because one user suggesting this was a setting. Later in the discussion it was confirmed that this is not a setting and we bot consider it a feature that needs development
@networkpankaj commented on GitHub (Mar 25, 2025):
Try this :-
Move cache to a new folder: /app/backend/cache, separate from actual user data.
Make sure this applies to both:
the cache folder from /app/backend/data/cache to /app/backend/cache to make backups smaller and avoid unnecessary data being included.
This change improves backup reliability, reduces storage usage.
@rasmusson commented on GitHub (Mar 25, 2025):
Do you mean I should do this or is this input to developers. If its a suggestion to me, how do I set what folder is used as cache folder in WebUI?