Skip to main content
Canory

Descended from an inner star system of the Sunflower galaxy. Not an owl. Theme Canory — a micro blog theme for Hugo, one of many static site generators.

Canory

· @micro.thedroneely.com · 32 sec · 96/50 words · · #id · raw

Resource abuse is not good — cache responsibly. In the hugo configuration file (config.yaml, config.json, config.toml) set the cache expiry time. The default is 12h (12 hours) for remote fetches and -1 (forever) for assets, images, and modules. The time scales are seconds (s), minutes (m), and hours (h). Turn off a cache by setting a max age of 0.

yaml
---
caches:
  assets:
    dir: :resourceDir/_gen
    maxAge: -1
  images:
    dir: :resourceDir/_gen
    maxAge: -1
  getcsv:
    dir: :resourceDir/caches
    maxAge: 12h
  getjson:
    dir: :resourceDir/caches
    maxAge: 12h
  getresource:
    dir: :resourceDir/caches
    maxAge: 12h
  modules:
    dir: :resourceDir/caches
    maxAge: -1
Caching Options
#cache #docs

Authors

Nobody

Nobody

@nobody

Follow
Canory

Canory

@canory

Follow
tdro

tdro

@tdro

Follow

Picture Gallery

Web Ring