0

Is there a way to disable django queryset caching

I am developing an e-commerce site, and when I add the same item to the cart several times, the only way I can do that is if I use the same queryset, so after the first queryset, the other ones just update the quantity of the same item then save it, but I noticed that the database is caching the second queryset because it is the one where I start updating the quantity, mainly because I am storing the queryset in the same variable. So how can I solve this?

11th Nov 2020, 5:38 AM
prime omondi
prime omondi - avatar
1 Réponse
0
Can you share that part of your code?
16th Jun 2021, 9:35 AM
Fu Foy
Fu Foy - avatar