On the homepage, this reduces the number of database queries from 640 to 503.
How did you fix the problem?
Replaced DummyCache with LocMemCache. This is the default cached that Django uses if none is specified.
Added the django.template.loaders.cached.Loader template loader. Django caches templates by default but only if loaders isn't specified, so we need to explicitly configure it in our settings.
What problem does this PR solve?
Closes #1332
On the homepage, this reduces the number of database queries from 640 to 503.
How did you fix the problem?
DummyCache
withLocMemCache
. This is the default cached that Django uses if none is specified.django.template.loaders.cached.Loader
template loader. Django caches templates by default but only ifloaders
isn't specified, so we need to explicitly configure it in our settings.