mirror of https://github.com/zulip/zulip.git
Enabled the Django cached template loader.
This was recommended by: https://docs.djangoproject.com/en/dev/howto/deployment/checklist/ Since we don't change our deployments without restarting Django and don't use any custom template magic, this should be a free performance win. (imported from commit fd498ab97d0669c3a14b342b2d2f01994a1f1ee1)
This commit is contained in:
parent
98ad49c866
commit
828917cac8
|
@ -138,8 +138,10 @@ USE_X_FORWARDED_HOST = True
|
|||
|
||||
# List of callables that know how to import templates from various sources.
|
||||
TEMPLATE_LOADERS = (
|
||||
'django.template.loaders.filesystem.Loader',
|
||||
'django.template.loaders.app_directories.Loader',
|
||||
('django.template.loaders.cached.Loader', (
|
||||
'django.template.loaders.filesystem.Loader',
|
||||
'django.template.loaders.app_directories.Loader',
|
||||
)),
|
||||
)
|
||||
|
||||
MIDDLEWARE_CLASSES = (
|
||||
|
|
Loading…
Reference in New Issue