Re: Caching question

2008-06-06 Thread James Bennett
On Fri, Jun 6, 2008 at 2:11 PM, Peter Rowell <[EMAIL PROTECTED]> wrote: > I'm a little confused. The docs (http://www.djangoproject.com/ > documentation/middleware/#django-middleware-cache-cachemiddleware) > say, and the code appears to support it, that if >

Re: Caching question

2008-06-06 Thread Peter Rowell
@James: I'm a little confused. The docs (http://www.djangoproject.com/ documentation/middleware/#django-middleware-cache-cachemiddleware) say, and the code appears to support it, that if django.middleware.cache.CacheMiddleware in the MIDDLEWARE_CLASSES list, then caching is turned on for the

Re: Caching question

2008-06-06 Thread [EMAIL PROTECTED]
> * If you apply the cache_page decorator to a specific view, the > caching performed by that decorator only occurs for anonymous users. > * If you use the {% cache %} tag in a template, the caching occurs for > all users in all situations regardless of anonymous status. > * If you use the

Re: Caching question

2008-06-05 Thread James Bennett
On Thu, Jun 5, 2008 at 3:05 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I've read the caching documentation several times, but must be missing > some fine points. If I have > CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True > set, does per-view or template fragment caching override that? If you

Re: Caching question

2008-06-05 Thread [EMAIL PROTECTED]
On Jun 5, 6:22 pm, Peter Rowell <[EMAIL PROTECTED]> wrote: > > does per-view or template fragment caching override that? > > From looking at django/middleware/cache.py, I would say that the view > (and therefore the template) never get a chance to override. This > check is done early in the

Re: Caching question

2008-06-05 Thread Peter Rowell
> does per-view or template fragment caching override that? >From looking at django/middleware/cache.py, I would say that the view (and therefore the template) never get a chance to override. This check is done early in the request processing cycle, even before URL routing is performed. Peter

caching question

2008-03-31 Thread Constantin Christmann
Hello Django-Group, I have a caching related question: The website I am currently working on has a header where the login status of the current user is displayed. I am thinking about ways for caching such a site: because of the displayed login status caching on a per view basis would require a

Caching question

2008-02-25 Thread Constantin Christmann
Hello, I installed the CacheMiddelware with the following settings: CACHE_BACKEND = 'db://cache_table' CACHE_MIDDLEWARE_SECONDS = 300 CACHE_MIDDLEWARE_KEY_PREFIX = '' CACHE_MIDDLEWARE_ANONYMOUS_ONLY = False For testing I print the creation time of the rendered view in the corner of my website.