mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-14 05:02:01 -06:00
[GH-ISSUE #20830] issue: PersistentConfig values are cached in Redis even when persistent config is disabled #57969
Reference in New Issue
Block a user
Originally created by @kirill-sch on GitHub (Jan 20, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20830
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.7.2
Ollama Version (if applicable)
No response
Operating System
Windows 10
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When persistent config is turned off (
ENABLE_PERSISTENT_CONFIG=False), all variables should be loaded from environment variables and should not persist between container restarts, even if changes are made in the Admin UI and saved.Actual Behavior
Environment variables labeled as PersistentConfig will persist between container restarts when Redis is used, even with persistent config disabled. In the Admin UI, if you click Save (without even changing any values), environment variables labeled as PersistentConfig will be cached. On container restart, the application will not use the environment variables that are set, but will instead load the values from the cache. To have it pick up the environment variables again, you must manually delete the corresponding configuration keys from Redis. As a result, even with persistent config disabled, the configuration will always persist.
Steps to Reproduce
OPENAI_API_KEYis visible under Edit ConnectionOPENAI_API_KEYkey at this point (if you were to change the environment variable now, the new value would be loaded)docker compose downOPENAI_API_KEYto a different value (e.g.OPENAI_API_KEY: "sk-notnot")docker compose up -dOPENAI_API_KEYdid not change (you will see the original value instead of the updated environment variable)docker compose downanddocker compose up -dLogs & Screenshots
step 3.

step 4.

step 5.

step 6.

step 10.

step 11.

step 13.

Additional Information
No response
@owui-terminator[bot] commented on GitHub (Jan 20, 2026):
🔍 Similar Issues Found
I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:
by mymro • Jul 24, 2025 •
bug💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
@tjbck commented on GitHub (Jan 21, 2026):
Good catch, should be fixed in dev!