Ask Your Question
1

How to clear cache in Askbot

asked 2013-08-22 06:04:56 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-08-22 06:09:14 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

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()
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-08-22 06:04:56 -0600

Seen: 2,934 times

Last updated: Aug 22 '13