Enable Template Caching

Registered by Rob Cresswell

Summary
=======
To improve the template rendering speed of Horizon, by caching templates in memory.

Description
=========
We should alter the template loading so that it uses `django.template.loaders.cached.Loader`.

- https://docs.djangoproject.com/en/1.8/ref/templates/api/#django.template.loaders.cached.Loader
- https://docs.djangoproject.com/en/1.9/ref/templates/upgrading/

UX
===
The end result should be a speedup

Wireframes, Mocks, Videos and UI Markup
---------------------------------------------------------
N/A

Testing
======
This is tricky, and I could use suggestions. We'd need to research common issues with the cached template loader, and ensure all our templatetags are thread-safe.
https://docs.djangoproject.com/en/1.8/howto/custom-template-tags/#template-tag-thread-safety

Outside Dependencies
==================
N/A

Requirements Update Required
========================
N/A

Doc Impact
=========
Release notes need to mention settings alterations, as well as issues that the cached loader may potentially cause.

Blueprint information

Status:
Complete
Approver:
David Lyle
Priority:
High
Drafter:
Rob Cresswell
Direction:
Approved
Assignee:
None
Definition:
Approved
Series goal:
Accepted for mitaka
Implementation:
Implemented
Milestone target:
milestone icon mitaka-2
Started by
David Lyle
Completed by
David Lyle

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/cache-templates,n,z

Addressed by: https://review.openstack.org/252961
    Add Cached loader for templates

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.