>I was thinking we could add a CACHE_COMPILED_TEMPLATES setting and
>change get_template() to give it a "cache" keyword argument, which
>would default to the value of CACHE_COMPILED_TEMPLATES. Any quick
>thoughts before I implement this?

Or a way for the template loader to tell the machinery that the
template is already compiled? That way a template loader could cache
compiled templates and on access return the compiled template to
Django, instead of the template source?

I would prefer it much if this template caching could be moved to the
template loader completely, because it's a much saner approach than
adding yet another setting - every setting makes the template system
more dependend on the settings and therefore makes more complicated to
separate it (to allow people to use the Django template system without
the rest of the machinery).

bye, Georg

Reply via email to