mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-10 05:34:45 +00:00
22 lines
604 B
ReStructuredText
22 lines
604 B
ReStructuredText
.. _limits:
|
||
|
||
Limits
|
||
------
|
||
|
||
Locmem
|
||
......
|
||
|
||
Locmem is a just a dict stored in a single Python process.
|
||
It’s not shared between processes, so don’t use locmem with django-cachalot
|
||
in a multi-processes project, if you use RQ or Celery for instance.
|
||
|
||
Raw queries
|
||
...........
|
||
|
||
Django-cachalot doesn’t cache queries it can’t reliably invalidate.
|
||
For this reason, ``Model.objects.raw(…)`` & ``cursor.execute(…)`` queries
|
||
are not cached.
|
||
|
||
If you modify the database using a raw query, **you will have to manually
|
||
invalidate** django-cachalot using one of the tools available
|
||
in :ref:`the API <API>`.
|