Skip to content

About

Persists the Cecil’s cache between Netlify builds.

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

@cecilapp/netlify-plugin-cache

This Netlify plugin persists the Cecil’s cache between Netlify builds.

Usage

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-cache

Add the following lines to your project’s netlify.toml file:

[build]
  publish = "_site"
[[plugins]]
  package = "@cecilapp/netlify-plugin-cache"

Available inputs

[[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)

Environment variables

The plugin reads the same environment variables as Cecil:

  • CECIL_CACHE_DIR: cache directory (takes precedence over the cacheDir input)
  • CECIL_CACHE_ENABLED=false: cache is disabled, so the plugin doesn’t restore nor store anything
  • CECIL_DEBUG=true: print the list of cached items in build log

License

@cecilapp/netlify-plugin-cache is a free software distributed under the terms of the MIT license.

© Arnaud Ligny

About

Persists the Cecil’s cache between Netlify builds.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages