Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redis caching outdated username->id pairs #1226

Open
sajiljosephs opened this issue Feb 27, 2025 · 1 comment
Open

Redis caching outdated username->id pairs #1226

sajiljosephs opened this issue Feb 27, 2025 · 1 comment

Comments

@sajiljosephs
Copy link

I am using nitter and redis as docker containers and I could see that for some users it wasnt fetching tweets for more than 1.5 years because it was disabled as per redis caching due to errors. Do we have any specific config for redis caching which needs to be set regarding flushall or flushdb or TTL etc ?

@zedeus
Copy link
Owner

zedeus commented Feb 27, 2025

This is a bit tricky since stock Redis doesn't allow per-field TTL for hashes. The cache saves ~0.25 seconds per profile load, so it's a huge saving in terms of bandwidth, load time, and API usage. I'll have to think about this again and see if I can figure something out.

For now, the only advice I have is to run redis-cli flushdb every now and then, maybe throw it in a cronjob.

@zedeus zedeus changed the title redis caching Redis caching outdated username->id pairs Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants