Very useful snippet. It basically changes the Django template loader to cache templates at first load. Normally, Django reparses each template every time its loaded in case the template has changed. But if it’s a production site with relatively finalized templates, it’s a nice bit of optimization.
12.28.2007 — comments (0) — django