-
-
Notifications
You must be signed in to change notification settings - Fork 422
Closed
Labels
Description
At the moment there are two ways of preventing caching:
- Pass
cache=True
toBaseQuery._request()
- Use of the context guard
with suspend_cache()
We should settle for one solution only.
I like suspend_cache()
as you can suspend the cache for large sections where multiple requests can be present. As long as suspend_cache() counts the number of stacked suspension, you should be able to properly suspend_cache()
within a section of code where suspend_cache()
already apply.
Thoughts?