Resetting cache for Django cached template loader
问题 Django 1.2 introduced a new template loader, that stores data in cache ( django.template.loaders.cached.Loader ). Unfortunatly, i failed to find any info on how the cache is invalidated and when and how it is reset. I want to use this on my server, but i'm not sure, that it would reset on django restart (that would be enough for me). 回答1: By digging into django's source, you could find the template loaders for current server instance are stored at django.template.loader.template_source