A
A
Andrew2016-06-07 13:01:15
Django
Andrew, 2016-06-07 13:01:15

How do you use django-cacheops?

Good afternoon!
Now the project uses django-cacheops and there is a suspicion that in some places it only spoils everything for us.
Clogs redis and spits into it with data that is not needed there.
For example, after save.
Share recipes/configs, please!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Suor, 2016-09-30
@Suor

You can flexibly configure what Cacheops will write and what will not. By models and operations. Recording on save is an additional feature, disabled by default.
If you still write too much, then you can not cache anything by default, but call .cache() on querisets that you definitely need to save.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question