diff --git a/README.md b/README.md
index 5662946..2b42814 100644
--- a/README.md
+++ b/README.md
@@ -133,6 +133,7 @@ docker run --rm \
-e PLUGIN_BUILDDRAFTS=false \
-e PLUGIN_BUILDEXPIRED=false \
-e PLUGIN_BUILDFUTURE=false \
+ -e PLUGIN_CACHEDIR=false \
-e PLUGIN_CONFIG=false \
-e PLUGIN_CONTENT=false \
-e PLUGIN_LAYOUT=false \
@@ -152,6 +153,7 @@ docker run --rm \
`buildDrafts` - include content marked as draft
`buildExpired` - include expired content
`buildFuture` - include content with publishdate in the future
+`cacheDir` - change cache directory (useful when using caching plugins)
`config` - config file (default is path/config.yaml|json|toml)
`content` - filesystem path to content directory
`layout` - filesystem path to layout directory
diff --git a/docs/tmpl.md b/docs/tmpl.md
index f360828..bcb50e2 100644
--- a/docs/tmpl.md
+++ b/docs/tmpl.md
@@ -133,6 +133,7 @@ docker run --rm \
-e PLUGIN_BUILDDRAFTS=false \
-e PLUGIN_BUILDEXPIRED=false \
-e PLUGIN_BUILDFUTURE=false \
+ -e PLUGIN_CACHEDIR=false \
-e PLUGIN_CONFIG=false \
-e PLUGIN_CONTENT=false \
-e PLUGIN_LAYOUT=false \
@@ -152,6 +153,7 @@ docker run --rm \
`buildDrafts` - include content marked as draft
`buildExpired` - include expired content
`buildFuture` - include content with publishdate in the future
+`cacheDir` - change cache directory (useful when using caching plugins)
`config` - config file (default is path/config.yaml|json|toml)
`content` - filesystem path to content directory
`layout` - filesystem path to layout directory
diff --git a/drone-hugo.sh b/drone-hugo.sh
index d45300c..1d3fe45 100755
--- a/drone-hugo.sh
+++ b/drone-hugo.sh
@@ -15,6 +15,7 @@ PLUGIN_SOURCE=${PLUGIN_SOURCE:-"false"}
PLUGIN_THEME=${PLUGIN_THEME:-"false"}
PLUGIN_URL=${PLUGIN_URL:-"false"}
PLUGIN_VALIDATE=${PLUGIN_VALIDATE:-"false"}
+PLUGIN_CACHEDIR=${PLUGIN_CACHEDIR:-"false"}
# The hugo command
HUGO_COMMAND="hugo"
@@ -48,6 +49,7 @@ fi
if [[ $PLUGIN_BUILDDRAFTS != "false" ]] ; then addArgument "-D" ; fi
if [[ $PLUGIN_BUILDEXPIRED != "false" ]] ; then addArgument "-E" ; fi
if [[ $PLUGIN_BUILDFUTURE != "false" ]] ; then addArgument "-F" ; fi
+if [[ $PLUGIN_CACHEDIR != "false" ]] ; then addArgument "--cacheDir ${PLUGIN_CACHEDIR}" ; fi
if [[ $PLUGIN_CONFIG != "false" ]] ; then addArgument "--config ${PLUGIN_CONFIG}" ; fi
if [[ $PLUGIN_CONTENT != "false" ]] ; then addArgument "--contentDir ${PLUGIN_CONFIG}" ; fi
if [[ $PLUGIN_LAYOUT != "false" ]] ; then addArgument "--layoutDir ${PLUGIN_LAYOUT}" ; fi