For a specific controller's action, how would I first check to see HTML is in memcached, and yes then render from cache.
If not found, render the view page's html, then take that html and store it in memcached for future requests.
I actually want to do it in the controller's action, because I want to see what role the user belongs to, if they are logged in, and other logic
The easiest way is to use the
cache_page
decorator fromdjango.views.decorators.cache
.You can do it explicitly in you template if you want to cache only a part of your rendered html