Moved cache-dir setting to settings.py
Oops.
Added invalidating of cache.