Sort of -- with AJAX (meaning I just serve JSON) I don't use RequestContext at all. Just HttpResponse(jsonData), which works fine for my purposes.
It's really puzzling though why context request should affect caching. It's a shame I can't use it. Reinout van Rees wrote: > > On 08/24/2010 11:15 PM, buddhasystem wrote: >> >> I'm trying to use native caching in Django as per >> http://docs.djangoproject.com/en/dev/topics/cache/ >> >> I followed the setup procedure to the tee (it's not hard, of course). >> What I >> observe is that my app caches only views that deliver HTML. Since my >> application is heavily AJAX, that's not what I want -- I want to cache >> JSON >> -- but it doesn't work! >> >> Any hints how I can make it work? > > Quick guess: difference in RequestContext between regular html pages and > ajax views? > > > Reinout > > -- > Reinout van Rees - [email protected] - http://reinout.vanrees.org > Programmer at http://www.nelen-schuurmans.nl > "Military engineers build missiles. Civil engineers build targets" > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > > -- View this message in context: http://old.nabble.com/Caching-JSON-in-Django-tp29526535p29531093.html Sent from the django-users mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

