Skip to content

Fragment caching not working when django debug toolbar is enabled. #877

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pstreck opened this issue Sep 14, 2016 · 6 comments
Open

Fragment caching not working when django debug toolbar is enabled. #877

pstreck opened this issue Sep 14, 2016 · 6 comments

Comments

@pstreck
Copy link

pstreck commented Sep 14, 2016

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.

@matthiask
Copy link
Member

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

@pstreck
Copy link
Author

pstreck commented Sep 17, 2016

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
Copy link
Author

pstreck commented Sep 26, 2016

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

@millin
Copy link

millin commented Oct 6, 2016

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

@zetaab
Copy link

zetaab commented Feb 5, 2017

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

@r3m0t
Copy link

r3m0t commented Mar 27, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants