I use Django's cached template loader to speed up my site:
TEMPLATE_LOADERS = (
('django.template.loaders.cached.Loader', (
....
)),
)
Is there a way to exclude specific templates from being cached? I have a template that I change a fair amount and I'd like to avoid having to restart my project every time I make a change to the template. Or, maybe a way to clear all cached templates without restarting the project?
I did see this Resetting cache for Django cached template loader. Maybe that can be used to exclude a template but, if so, I'm not seeing how to use it.
Edit: Someone asked if this answered my question Fighting client-side caching in Django. No, because my question has nothing to do with client-side caching.