Merge "Turn off angular template cache preloading when DEBUG=True"
This commit is contained in:
commit
7fcb0cf676
@ -60,11 +60,13 @@
|
||||
|
||||
{% endcompress %}
|
||||
|
||||
{% compress js file angular_template_cache_preloads %}
|
||||
{% cache NG_TEMPLATE_CACHE_AGE angular 'template_cache_preloads' THEME %}
|
||||
{% angular_templates %}
|
||||
{% endcache %}
|
||||
{% endcompress %}
|
||||
{% if not debug %}
|
||||
{% compress js file angular_template_cache_preloads %}
|
||||
{% cache NG_TEMPLATE_CACHE_AGE angular 'template_cache_preloads' THEME %}
|
||||
{% angular_templates %}
|
||||
{% endcache %}
|
||||
{% endcompress %}
|
||||
{% endif %}
|
||||
|
||||
{% comment %} Client-side Templates (These should *not* be inside the "compress" tag.) {% endcomment %}
|
||||
{% include "horizon/client_side/templates.html" %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user