Setting cache (rebased onto develop)



This is the same as gh-721 but rebased onto develop.

----

Additional notes about Django cache, see #717