#1047 closed defect (duplicate)
bug in decorator_from_middleware function
| Reported by: | Owned by: | Jacob | |
|---|---|---|---|
| Component: | Core (Cache system) | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Triage Stage: | Design decision needed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
when i use cache_page decorator in Python24, I found
@cache_page( 60 * 15 )
def some_view( request ):
pass
not equals
def some_view( request ):
pass
some_view = cache_page( some_view , 60 * 15 )
it equals
def some_view( request ):
pass
some_view = cache_page(60*15)( some_view )
so i think zhe 'cache.txt' and zhe decorator_from_middleware function should be fixed for this bug.
bug i don't know how to do that.
BTW:the cache system is so cool. :D
Change History (2)
comment:1 by , 20 years ago
comment:2 by , 20 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Duplicate of #1015.