[Answer]-Template tags for static content in django performance issue?

1👍

Use a template cache. You would want to add this to your settings.py. Just adjust the location. This is if you would like to use Memcached:

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '127.0.0.1:11211',
    }
}

This will speed up your template loading. Here is the official documentation:

https://docs.djangoproject.com/en/dev/topics/cache/#setting-up-the-cache

Leave a comment