When calling @cache_page with no arguments I get the following exception while running mod_wsgi. I'm not sure if that usage is valid. I would assume it would use CACHE_MIDDLEWARE_SECONDS if nothing is provided, but I can't find anything about that in docs or see any evidence of that in the code. If that argument is required, I think a clear exception should be thrown rather than this one when running under mod_wsgi.
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/django/core/handlers/base.py", line 92, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.6/dist-packages/django/utils/decorators.py", line 33, in adapt
return MethodDecoratorAdaptor(decorator, func)
File "/usr/lib/python2.6/dist-packages/django/utils/decorators.py", line 15, in __init__
File "/usr/lib/python2.6/functools.py", line 33, in update_wrapper
setattr(wrapper, attr, getattr(wrapped, attr))
AttributeError: 'WSGIRequest' object has no attribute '__name__'