-
Notifications
You must be signed in to change notification settings - Fork 1.1k
DJDT not showing low level caching correctly in Docker #1496
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
Comments
Hi @LiorA1, can you share the view or code that you're trying to use this with? Looking at the arguments, it seems like you're using some decorators to handle the caching and since none are Please also share any caching related settings, such as middleware, decorators, caching applied via the urls and whether or not you're using template caching for this view. |
The view was view-cached in the past, but I remove it. My Base Settings:
My Development Settings:
urls:
The view:
(I decided to do all the caching in the models file)
If I forget smoething the project is on github: |
Sounds good. Please retry the request without the view level caching and let us know what the toolbar presents in the cache panel. |
Tried it. This is a sequential request, in the first one SQL queries appeared. It doesnt show nothing. P.S- |
Did you try without the view level decorators and without the middleware? It does seem like something is broken, but I can't tell what. I'd really appreciate it if you could create a small reproducible example for us to more thoroughly investigate. |
In the particular App I even dont import the cache_page decorator. I'm working with VSC and docker-compose, it hard to debug, but I will try and update here. I will try to reproduce it and update here when finish. |
Whoops. I didn't mean without all middleware. Only without the middleware highlighted in the link above which shows your project's settings:
|
Ok, Four hours later - reproduce it. I will try to comment out these middleware. Edit: |
Thanks for the help! There was indeed a bug, but it was unrelated to docker. |
No problem, I also tried to figure it out. (reach to "_store_call_info"/"get_cache_key" - It took time to set the debugger ...) |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I working with DJDT for a few months.
I figure out the "not showing" issue in docker, but the data inside the cache panel is not showing properly.
The inner data, doesnt match the outer data and in the arguments column it shows addresses or something alike.
A proper data: (taken from an online guide)

(From: https://testdriven.io/blog/django-low-level-cache/#cache-backend)
What it shows inside a Docker:

BTW: It also shows it like a view cache, but the view is not cached (Its a dynamic view)
My Configuration:
Does anyone have idea how to solve it ?
Where to start ?
The text was updated successfully, but these errors were encountered: