Add cache middlewares.

See for the detailed documentation:
https://docs.djangoproject.com/en/1.5/topics/cache/#the-per-site-cache