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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
asked 11 years ago
This post is a wiki. Anyone with karma >100 is welcome to improve it.

Comments

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()

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
updated 11 years ago
This post is a wiki. Anyone with karma >100 is welcome to improve it.
link

Comments

see more comments