best lugar para borrar el caché al reiniciar el servidor django

Quiero que memcached se vacíe en cada reinicio / recarga del servidor django. Uso cherrypy para producción y servidor incorporado para desarrollo.

Agregaría esto a settings.py, justo después de CACHES:

from django.core.cache import cache
cache.clear()

pero hace una importación recursiva:

Error: Can't find the file 'settings.py' in the directory containing 'manage.py'. It appears you've customized things.
You'll have to run django-admin.py, passing it your settings module.
(If the file settings.py does indeed exist, it's causing an ImportError somehow.)
make: *** [server] Error 1

¿Cualquier otra sugerencia? Gracias

Respuestas a la pregunta(4)

Su respuesta a la pregunta