GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - codeinthehole/django-cacheback: Smart caching for Django using Celery to refresh cached items asynchronously.

BranchesTags
Open more actions menu

Latest commit

 

History

346 Commits
346 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
cacheback
cacheback
 
 
docs
docs
 
 
sandbox
sandbox
 
 
tests
tests
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.python-version
.python-version
 
 
.readthedocs.yml
.readthedocs.yml
 
 
CHANGELOG.rst
CHANGELOG.rst
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.rst
README.rst
 
 
docker-compose.yml
docker-compose.yml
 
 
pyproject.toml
pyproject.toml
 
 
tox.ini
tox.ini
 
 

Repository files navigation

Cacheback

Asynchronous cache refreshing for Django

What does this library do?

It's an extensible caching library that refreshes stale cache items asynchronously using a Celery or rq task (utilizing django-rq). The key idea being that it's better to serve a stale item (and populate the cache asynchronously) than block the response process in order to populate the cache synchronously.

Using this library, you can rework your views so that all reads are from cache - which can be a significant performance boost.

A corollary of this technique is that cache hammering can be handled simply and elegantly, avoiding sudden surges of expensive reads when a cached item becomes stale.

Do you have good docs?

Yup - over on readthedocs.org.

Supported versions

Python 3.10+ is supported. Django 5.2+ is supported.

Do you have tests?

You betcha!

CI Status

Can I use this in my project?

Probably - subject to the MIT license.

I want to contribute!

Brilliant! Here are the contributing guidelines.

About

Smart caching for Django using Celery to refresh cached items asynchronously.

codeinthehole.com/writing/cacheback-asynchronous-cache-refreshing-for-django/

Resources

Readme
MIT license

Contributing

Contributing
Activity

Stars

374 stars

Watchers

10 watching

Forks

76 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.