feat: Separate cache from user data #4556

Closed
opened 2025-11-11 15:56:44 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @rasmusson on GitHub (Mar 25, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.

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

Originally created by @rasmusson on GitHub (Mar 25, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### 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
Author
Owner

@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:

  1. Embedding cache
  2. Audio models
  3. Any other relevant cache folders

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.

@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: 1. Embedding cache 2. Audio models 3. Any other relevant cache folders 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.
Author
Owner

@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?

@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?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#4556