First time here? Check out the FAQ!
1

How to clear cache in Askbot

Hi everybody!

We use Redis as a caching system. I've changed RSS feed availability setting in "Settings", however this change was not reflected on the main page. RSS feed subscription button still invisible. Can I refresh the cache manually? And how?

Thank you.

asked 2013-08-22 06:04:56 -0500
This post is a wiki. Anyone with karma >100 is welcome to improve it.
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

Ok, here is the solution:

$ redis-cli 
redis 127.0.0.1:6379> FLUSHALL

Another solution, using the Python shell (this can easily be implemented in a management command):

python manage.py shell
>>> from django.core.cache import cache
>>> cache.clear()
updated 2013-08-22 06:09:14 -0500
This post is a wiki. Anyone with karma >100 is welcome to improve it.
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments