Skip to content

Instantly share code, notes, and snippets.

@janit
Created July 31, 2015 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janit/3b6358591479fcaa738f to your computer and use it in GitHub Desktop.
Save janit/3b6358591479fcaa738f to your computer and use it in GitHub Desktop.
# Settings for caching in parts of Bolt.
# - config: Caches the parsed .yml files from /app/config. It's updated
# immediately when one of the files changes on disk. There
# should be no good reason to turn this off.
# - templates: Caches rendered templates.
# - request: Caches entire rendered pages like '/page/about', but only on
# GET requests.
# - duration: The duration (in minutes) for the 'templates' and 'request'
# options. default is 10 minutes. Note that the duration is set
# on storing the cache. By lowering this value you will not
# invalidate currently cached items.
# - authenticated: Cache 'templates' and 'request' for logged-on users. In most
# cases you should *NOT* enable this, because it will cause
# side-effects if the website shows different content to
# authenticated users.
caching:
config: true
templates: true
request: false
duration: 10
authenticated: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment