Within the view itself, I want to be able to set the cache timeout value upon returning a result. The reason for this is if the view returned an error, I want the timeout to be shorter.
Right now, I have the timeout set as static:
url(r'^view/(.+)/', cache_page(24 * 60 * 60)(MyView.as_view()), name='view')