django-debug-toolbar icon indicating copy to clipboard operation
django-debug-toolbar copied to clipboard

Fragment caching not working when django debug toolbar is enabled.

Open pstreck opened this issue 9 years ago • 6 comments

When working in Django 1.10 or 1.10.1 fragment caching is not working with Django Debug Toolbar enabled. View caching and ImageKit caching work fine though.

pstreck avatar Sep 14 '16 16:09 pstreck

I'm not sure what you mean by fragment caching. Are you saying that we break the {% cache %} template tag in some way?

matthiask avatar Sep 17 '16 08:09 matthiask

Yes, exactly. With the toolbar enabled elements within the {% cache %} {% endcache %} tags are not cached in my backend (memcached). With the toolbar disabled everything is cached as expected.

pstreck avatar Sep 17 '16 17:09 pstreck

Is there any information I can provide to help debug this incident? I would like to help resolve it if possible.

pstreck avatar Sep 26 '16 16:09 pstreck

For me caching works fine (I checked it from memcached side), but cache panel of django-debug-toolbar doesn't show any calls.

millin avatar Oct 06 '16 06:10 millin

I have same issue, cache works correctly but django-debug-toolbar does not show any calls.

zetaab avatar Feb 05 '17 10:02 zetaab

This is the same as #799 , caches needs to be monkey-patched in django.templatetags.cache

r3m0t avatar Mar 27 '17 14:03 r3m0t