Simon Willison's Weblog

Subscribe

Cache Machine: Automatic caching for your Django models. This is the third new ORM caching layer for Django I've seen in the past month! Cache Machine was developed for zamboni, the port of addons.mozilla.org to Django. Caching is enabled using a model mixin class (to hook up some post_delete hooks) and a custom caching manager. Invalidation works by maintaining a "flush list" of dependent cache entries for each object--this is currently stored in memcached and hence has potential race conditions, but a comment in the source code suggests that this could be solved by moving to redis.

Posted 11th March 2010 at 7:35 pm

Recent articles

cachemachine 1 caching 49 django 583 memcached 33 mozilla 114 orm 40 ormcaching 4 python 1223 redis 59

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.

Pay me to send you less!

Sponsor & subscribe