Closed ShmuelTreiger closed 2 years ago
You didn't include any ops to cache, like get
or fetch
. Configuration with empty ops only does manual caching. There are several commented examples in CACHEOPS
setting in README.
Sorry about that. Completely misunderstood the read me. Thank you.
Hi! Thank you for the tool and sorry to bother you. Having an issue:
My settings:
Test script:
When I include the explicit
.cache()
calls, these work and eachprint(len(connection.queries))
prints0
the second time I run the script. When I remove them, nothing gets cached and each query lengthensconnection.queries
no matter how many times I run the script. I looked through the tests and they always use the.cache()
. Am I supposed to use it? The automatic vs manual distinction made me thing not. Do I have something set up incorrectly?I'm using version 5.0 if that matters. Inherited a legacy project and if I can avoid it, I don't want to upgrade the cacheops version until I better understand what's going on and how we're using it.