Cache "static" includes to improve build performance (#1874)

* Add jekyll-include-cache plugin
* Cache "static" includes to improve build performance
* Update CHANGELOG and history

"Static" refers to those includes that don't rely on data passed from the page content.
This commit is contained in:
Michael Rose
2018-10-04 15:48:26 -04:00
committed by GitHub
parent c801107754
commit e704cd40d4
8 changed files with 20 additions and 11 deletions

View File

@ -16,13 +16,13 @@
{%- assign search_provider = site.search_provider | default: "lunr" -%}
{%- case search_provider -%}
{%- when "lunr" -%}
{% include search/lunr-search-scripts.html %}
{% include_cached search/lunr-search-scripts.html %}
{%- when "google" -%}
{% include search/google-search-scripts.html %}
{% include_cached search/google-search-scripts.html %}
{%- when "algolia" -%}
{% include search/algolia-search-scripts.html %}
{% include_cached search/algolia-search-scripts.html %}
{%- endcase -%}
{% endif %}
{% include analytics.html %}
{% include /comments-providers/scripts.html %}
{% include_cached analytics.html %}
{% include_cached /comments-providers/scripts.html %}