$npx skillfedfor your agent

django-cachalot

Caches your Django ORM queries and automatically invalidates them.

With conditionsPyPI WWW/HTTPReleased Aug 2026263.6K downloads / moBSDPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — django_cachalot-2.9.1-py3-none-any.whl
v2.9.1 · released 2026-08-10 · 1 runtime deps: Django

Yes, if your Django application is read-heavy with stable query patterns and fewer than 50 modifications per minute on cached tables. The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it a safe choice. Skip it if your workload involves frequent writes to large tables, as cache invalidation overhead will outweigh the benefit.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a cache backend configured in Django settings.
  • Clock synchronization across multiple servers is required if using a shared cache.
  • Installation is straightforward with low friction—a pure Python wheel with only Django as a runtime dependency.

License · maintenance · safety

BSD (permissive) — Licensed under BSD (permissive), so you can use, modify, and distribute this package freely in commercial and open-source projects without significant legal constraints.

last release 2026-08-10 (4 days) · last repo commit 2026-08-10 · 1,428 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 263,609 downloads/mo, #8,352 on PyPI

Verify before relying

pip install django-cachalot

# In settings.py, add to INSTALLED_APPS:
INSTALLED_APPS = [
    'cachalot',
    # ...
]

# Then use Django ORM normally—caching is automatic:
from Django import models
results = models.Model.objects.all()  # Cached automatically
  • Whether clock synchronization issues across multiple cache servers are resolved automatically or require manual intervention beyond what the documentation describes.
  • Performance characteristics when caching tables modified more than 50 times per minute, and whether the stated limitations apply to your specific workload.
  • Whether local memory caching works effectively for single-process deployments or if a dedicated cache backend is strictly required.
Same gist for agents: .md · .json

What it is and what it does

Django Cachalot is a caching layer that sits between your Django ORM and the database, automatically caching query results and invalidating them when the underlying data changes. It works by intercepting ORM queries, storing results in your configured cache backend, and clearing cached entries when INSERT, UPDATE, or DELETE operations occur. The package handles the complexity of cache invalidation automatically, so you don't have to manually manage cache keys.

The package is designed for read-heavy workloads where query patterns are relatively stable. It caches entire table results, which makes it efficient for cold caches or tables with fewer than 50 modifications per minute. For rapidly-changing data, cache invalidation overhead can become significant since the entire table cache is cleared on any write. It integrates directly into Django's ORM without requiring code changes to your queries—just add it to INSTALLED_APPS and configure your cache backend.

Use it for

  • Reduce database load in read-heavy applications by caching frequently-accessed ORM query results automatically.
  • Speed up initial page loads and API responses by caching the results of select_related and prefetch_related queries.
  • Simplify cache management in Django projects by eliminating manual cache key creation and invalidation logic.
  • Improve performance for applications with stable query patterns and infrequent data modifications.
  • Debug caching behavior in Django admin and development tools via the optional django-debug-toolbar integration.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if your Django application is read-heavy with stable query patterns and fewer than 50 modifications per minute on cached tables.

The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it a safe choice. Skip it if your workload involves frequent writes to large tables, as cache invalidation overhead will outweigh the benefit.

Install

django-cachalot on PyPI

Before you install

Installation is straightforward with low friction—a pure Python wheel with only Django as a runtime dependency. The project is actively maintained with a recent release (4 days old) and steady commit activity, making it a stable choice for production use.

Requires a cache backend configured in Django settings. Clock synchronization across multiple servers is required if using a shared cache.

License in practice

Licensed under BSD (permissive), so you can use, modify, and distribute this package freely in commercial and open-source projects without significant legal constraints.

Quickstart

pip install django-cachalot

# In settings.py, add to INSTALLED_APPS:
INSTALLED_APPS = [
    'cachalot',
    # ...
]

# Then use Django ORM normally—caching is automatic:
from Django import models
results = models.Model.objects.all()  # Cached automatically

Verify before relying

  • Whether clock synchronization issues across multiple cache servers are resolved automatically or require manual intervention beyond what the documentation describes.
  • Performance characteristics when caching tables modified more than 50 times per minute, and whether the stated limitations apply to your specific workload.
  • Whether local memory caching works effectively for single-process deployments or if a dedicated cache backend is strictly required.

Package facts

LicenseBSD permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
Django
MaintenanceActively maintained 4 days since the last release
Last repo commit
First released
Downloads263,609 / month, #8,352 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableFramework :: DjangoFramework :: Django :: 4.2Framework :: Django :: 5.2Framework :: Django :: 6.0Framework :: Django :: 6.1Intended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTP

Evidence: django_cachalot-2.9.1-py3-none-any.whl

Tags

Capabilities
django orm query cachingautomatic cache invalidationdjango database query cachereduce django database hitsorm result cachingdjango performance optimizationquery result memoization
Topics
django-ormquery-cachingperformance

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “django orm query caching”

  • django-cachalotAutomatically caches Django ORM queries and invalidates them when…
  • django-cacheopsAutomatic and manual ORM query caching for Django with Redis-backed…
  • django-prometheusExports Django application metrics (requests, database queries, cache…

Give your agent the search over MCP, or paste the wish link into any chat.

More WWW/HTTP packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
h11 With conditions
PyPI · WWW/HTTP · released Apr 2025

h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.

MITpure Python · 3.8+aging
894.9Mdownloads / mo
httpx Worth it
PyPI · WWW/HTTP · released Dec 2024

HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.

Install it if you are building new projects or modernizing existing ones that rely on HTTP.

BSD-3-Clausepure Python · 3.8+
797.0Mdownloads / mo
httpcore With conditions
PyPI · WWW/HTTP · released Apr 2025

A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.

BSD-3-Clausepure Python · 3.8+aging
783.6Mdownloads / mo
aiohttp Worth it
PyPI · WWW/HTTP · released Jul 2026

aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.

Install it if you need async HTTP client or server capabilities in asyncio-based applications.

permissive licensecompiled wheel · 3.10+
643.6Mdownloads / mo

See also django-cacheops · django-memoize · dbt-state · django-pickling · django-cache-memoize · Collectfasta · django-cache-url · Collectfast · django-redis · tortoise-orm