Django Cache with Testing

Post by Saul Shanabrook

Disable your caching when your testing. Just do it.

I spent an half an hour trying to figure out why my template I was
testing kept being rendered wrong, and then I realized that it was
caching my templates.

Use this for your testing settings.

CACHES = {  
    'default': {
        'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
     }
}