Opened 18 years ago
Closed 18 years ago
#3967 closed (duplicate)
@cache_page(60 * 15) doesn't work, view = cache_page(view,60 * 15) does
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Core (Other) | Version: | dev |
Severity: | Keywords: | middleware decorators | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I am trying to implement caching using the current dev version.
I get an AttributeError
/usr/lib/python2.4/site-packages/django/utils/decorators.py in _wrapped_view
line 12
/usr/lib/python2.4/site-packages/django/middleware/cache.py in process_request
line 47
'function' object has no attribute 'method'
Apparently the decorator passes a function in the request parameter
Note:
See TracTickets
for help on using tickets.
duplicate of #1015.