On Sep 11, 7:58 am, vbgunz <[EMAIL PROTECTED]> wrote: > I was reading the Django definitive guide and practicing on 0.96.2 > *but* caching is seriously broken on that version. I mean seriously. > Almost all of my issues were gone with a simple upgrade. I switched > from the book to the docs but still have questions. I would really > appreciate any help at all here!
I suggest upgrading to 1.0 or even the trunk version. I've been using trunk and updating regularly, it is very stable. > > Q. At what point in time do the query arguments come into play for > CACHE_BACKEND? Is it only a certain combination of arguments? Does > CacheMiddleware, UpdateCacheMiddleware, FetchFromCacheMiddleware play > any part at all with these arguments? Do only certain caching > interfaces accept these arguments? Are these arguments for upstream > caches e.g., squid-cache.org, ISP? Not real sure what you mean. The arguments control how things are cached, regardless of the backend or middleware. > > A. Nothing I do gets these arguments working. I've bust my chops > trying and feel the documentation does it absolutely no justice at > all. Its mentioned but when I play with it, nothing I do works :( You have not mentioned how you are deploying your django project (apache, development server?) nor what cache backend you are attempting to use. > > Q. Are Cache-Control HTTP directives meant for public, browser and > upstream caches beyond my control? I have finer grain tools for some > of this stuff don't I? > > A. This is a little tricky for me. I'd like to understand them a bit > better. Can't answer that one. > > Q. UpdateCacheMiddleware and FetchFromCacheMiddleware are how things > should be done now *but* CacheMiddleware still works. I'll take your > word on getting rid of CacheMiddleware in favor of the former > middleware *but* does CacheMiddleware still play a role I should at > least be aware of? CacheMiddleware is the older middleware used to support caching. UpdateCacheMiddleware and FetchFromCacheMiddleware are newer, and are now the preferred way to do things. > > A. beyond asking for too much, I simply noticed CacheMiddleware works > but the new docs for 1.0 point out using the others. I won't argue and > I'll simply trust using them but anything I should know? You'd have to ask a developer or look at the code, --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---