We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CACHALOT_UNCACHABLE_APPS
UncachableQuery exception raised when exporting model accounts.Account, even if the app accounts is listed in CACHALOT_UNCACHABLE_APPS:
UncachableQuery
accounts.Account
accounts
CACHALOT_CACHE = "cachalot" CACHALOT_ENABLED = True CACHALOT_ONLY_CACHABLE_APPS = [ # ... "website", ] CACHALOT_UNCACHABLE_APPS = [ "accounts", # ... ]
UncachableQuery: File "cachalot/monkey_patch.py", line 92, in inner table_cache_keys = _get_table_cache_keys(compiler) File "cachalot/utils.py", line 276, in _get_table_cache_keys for t in _get_tables(db_alias, compiler.query, compiler)] File "cachalot/utils.py", line 212, in _get_tables raise UncachableQuery
No exception should have been raised by django-cachalot.
django-cachalot
Django version: Django==3.2.16 Cachalot version: django-cachalot==2.5.2 Database: MySQL Cache backend: django.core.cache.backends.memcached.PyMemcacheCache
Django==3.2.16
django-cachalot==2.5.2
MySQL
django.core.cache.backends.memcached.PyMemcacheCache
.csv
CACHALOT_ONLY_CACHABLE_APPS
The text was updated successfully, but these errors were encountered:
Turns out #220 is discovering that the tables are still being cached.
Sorry, something went wrong.
Any reproducible project I could take a look at?
No, I'm sorry...
No branches or pull requests
What happened?
UncachableQuery
exception raised when exporting modelaccounts.Account
, even if the appaccounts
is listed inCACHALOT_UNCACHABLE_APPS
:Settings
Error
What should've happened instead?
No exception should have been raised by
django-cachalot
.Steps to reproduce
Env
Django version:
Django==3.2.16
Cachalot version:
django-cachalot==2.5.2
Database:
MySQL
Cache backend:
django.core.cache.backends.memcached.PyMemcacheCache
Context
accounts
with ~20k entries, in the admin I try to export it almost all rows as.csv
, then I end up with the reported error.CACHALOT_ONLY_CACHABLE_APPS
.django-cachalot
at all.The text was updated successfully, but these errors were encountered: