This Netlify plugin persists the Cecil’s cache between Netlify builds.
There are two ways to install this plugin:
Installing from Netlify UI
One-click install to add this to your Cecil site.
Installing from npm
Add the plugin to your project’s package.json:
npm install -D @cecilapp/netlify-plugin-cacheAdd the following lines to your project’s netlify.toml file:
[build]
publish = "_site"
[[plugins]]
package = "@cecilapp/netlify-plugin-cache"[[plugins]]
package = "@cecilapp/netlify-plugin-cache"
[plugins.inputs]
cacheDir = ".cache" # Cache directory, relative to the project root (`.cache` by default)
debug = true # Print the list of cached items in build log (`false` by default)The plugin reads the same environment variables as Cecil:
CECIL_CACHE_DIR: cache directory (takes precedence over thecacheDirinput)CECIL_CACHE_ENABLED=false: cache is disabled, so the plugin doesn’t restore nor store anythingCECIL_DEBUG=true: print the list of cached items in build log
@cecilapp/netlify-plugin-cache is a free software distributed under the terms of the MIT license.