noripyt / django-cachalot

No effort, no worry, maximum performance.
http://django-cachalot.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.26k stars 150 forks source link

Unexpected behavior when using DjangoDebugToolbar #216

Open Vyko opened 2 years ago

Vyko commented 2 years ago

What happened?

When setting CACHALOT_ENABLED = False but adding cachalot.panels.CachalotPanel panel in the DEBUG_TOOLBAR_PANELS variable, it acts like CACHALOT_ENABLED was True

What should've happened instead?

Adding cachalot.panels.CachalotPanel should not override the CACHALOT_ENABLED setting

Steps to reproduce

django 2.2 cachalot 2.5 django-debug-toolbar 3.0.0

tahme commented 1 year ago

Anybody else wondering about this, the Cachalot checkbox in the debug toolbar controls if cachalot is enabled for your requests or not. A useful feature, but took me a while to find out why CACHALOT_ENABLED=False didn't work.

tahme commented 1 year ago

Anybody else wondering about this, the Cachalot checkbox in the debug toolbar controls if cachalot is enabled for your requests or not. A useful feature, but took me a while to find out why CACHALOT_ENABLED=False didn't work.