django-cachalot/docs/limits.rst
2014-10-29 19:38:33 +01:00

22 lines
604 B
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.. _limits:
Limits
------
Locmem
......
Locmem is a just a dict stored in a single Python process.
Its not shared between processes, so dont use locmem with django-cachalot
in a multi-processes project, if you use RQ or Celery for instance.
Raw queries
...........
Django-cachalot doesnt cache queries it cant 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>`.