Anyone that has used @cache_page with jquery's JSONP knows that it does 
nothing.  The URL is different for every call, therefor nothing gets cached.

I suggest that a parameter is added to @cache_page which causes certain URL 
variables to be removed from the URL before the url is cached.  I'm 
picturing something like this:
@cache_page(60 * 15, ignore_variables=('callback',))

Another approach is to allow the user to pass REGEX(s) to sub out portions 
of the URL.  This will allow more flexibility, but is probably a bit 
overkill.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/3d0c35d2-ed2f-404a-98aa-fd88cc3c0165%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to