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
> django.middleware.cache.CacheMiddleware
@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 whol
> * 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 low-lev
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 have
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 reques
> 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
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?
In general, I don't want to cache for logged-in users, but I have some
things that could safely
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
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.
9 matches
Mail list logo