Librechat.yaml changes not taken into account #9725
Answered
by
danny-avila
jsapede
asked this question in
Troubleshooting
-
Beta Was this translation helpful? Give feedback.
Answered by
danny-avila
Sep 19, 2025
Replies: 2 comments 4 replies
-
Are you using Redis in your setup? You will need to flush the cache when making changes to Here's a quick script you can run: const redis = require('redis');
const dotenv = require('dotenv');
dotenv.config();
async function flushCache() {
const cacheConnection = redis.createClient({
url: process.env.REDIS_URI, // REPLACE WITH REDIS_URI OR USE MAKE ENVIRONMENT AVAILABLE
});
// Connect to Redis
await cacheConnection.connect();
console.log('\nFlushing cache...');
const result = await cacheConnection.flushAll();
console.log('Cache flush result: ' + result);
// Disconnect
cacheConnection.disconnect();
return 'Cache flushed';
}
flushCache()
.then((result) => console.log(result))
.catch(ex => console.log('Error flushing cache:', ex)); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jsapede
-
|
thanks for the script but as a newb, could you explain where / when to launch it ? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Are you using Redis in your setup? You will need to flush the cache when making changes to
librechat.yamlHere's a quick script you can run: