nitter icon indicating copy to clipboard operation
nitter copied to clipboard

Redis caching outdated username->id pairs

Open sajiljosephs opened this issue 10 months ago • 1 comments

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 ?

sajiljosephs avatar Feb 27 '25 08:02 sajiljosephs

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 avatar Feb 27 '25 15:02 zedeus