From d68aaea3791e37c6823ba81d413c9cde3e88f17e Mon Sep 17 00:00:00 2001 From: Robert Basic Date: Sun, 10 Apr 2016 10:11:00 +0200 Subject: [PATCH] helpers: Ignore cache for Pygments when flag set When the --ignoreCache flag is set to true, do not write and read the Pygments results to/from the cache directory. Fixes #2066 Closes #2068 --- content/extras/highlighting.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/extras/highlighting.md b/content/extras/highlighting.md index 788759d03..1efa9a0dc 100644 --- a/content/extras/highlighting.md +++ b/content/extras/highlighting.md @@ -106,6 +106,7 @@ It is also possible to add syntax highlighting with GitHub flavoured code fences ### Disclaimers * Pygments is relatively slow and _causes a performance hit when building your site_, but Hugo has been designed to cache the results to disk. + * The caching can be turned off by setting the `--ignoreCache` flag to `true`. * Languages available depends on your Pygments installation. ## Client-side