okfde / 2013.archiv.codefor.de

The old website for Code for Germany, 2013 edition. Includes the blog, projects list and basic info about the group.
https://2013.archiv.codefor.de
Other
153 stars 141 forks source link

disable caching for sharing-meta tags #877

Closed k-nut closed 5 years ago

k-nut commented 5 years ago

the head-social-og.html template actually depends on the current page and therefore cannot simply be cached.

By removing this cache we actually properly render the meta tags that are required for facebook/twitter/etc. again

k-nut commented 5 years ago

This does not seem to have any impact on build time (although I also only measured once):

~/p/codefor.de (gh-pages|✔) $ time bundle exec jekyll build
Configuration file: /Users/knut/projects/codefor.de/_config.yml
            Source: /Users/knut/projects/codefor.de
       Destination: /Users/knut/projects/codefor.de/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
                    done in 11.04 seconds.
 Auto-regeneration: disabled. Use --watch to enable.
       12.75 real         9.78 user         1.99 sys

~/p/codefor.de (gh-pages|✔) $ nvim _layouts/base.html #remove include_cached

~/p/codefor.de (gh-pages|✚1) $ time bundle exec jekyll build
Configuration file: /Users/knut/projects/codefor.de/_config.yml
            Source: /Users/knut/projects/codefor.de
       Destination: /Users/knut/projects/codefor.de/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
                    done in 10.222 seconds.
 Auto-regeneration: disabled. Use --watch to enable.
       11.35 real         9.77 user         1.43 sys