docs: the site's purge token is NUXT_CACHE_PURGE_TOKEN
The layers renamed it from NUXT_SITE_CACHE_PURGE_TOKEN, which nuxt-site-config published in every page's payload.
This commit is contained in:
@@ -70,7 +70,7 @@ cors:
|
||||
|
||||
### Site cache
|
||||
|
||||
A FAQ create, update or delete in the admin sends one purge request (`{"kind":"faq","slug":"<slug>"}`) to the host site after the save commits, through the framework's site-cache purger in `cooler`. Configure it once for the application with the framework keys `site_cache.purge_url` and `site_cache.purge_token` (`SUMMER_SITE_CACHE__PURGE_URL`, `SUMMER_SITE_CACHE__PURGE_TOKEN`); a site that extends `vue-faq-layer` 0.2.0 or later serves the matching route `POST /api/__site__/cache/purge` with `NUXT_SITE_CACHE_PURGE_TOKEN`. Without the keys nothing is sent. A save refused by the locale check sends nothing, and a failing or slow site never fails the save.
|
||||
A FAQ create, update or delete in the admin sends one purge request (`{"kind":"faq","slug":"<slug>"}`) to the host site after the save commits, through the framework's site-cache purger in `cooler`. Configure it once for the application with the framework keys `site_cache.purge_url` and `site_cache.purge_token` (`SUMMER_SITE_CACHE__PURGE_URL`, `SUMMER_SITE_CACHE__PURGE_TOKEN`); a site that extends `vue-faq-layer` 0.2.0 or later serves the matching route `POST /api/__site__/cache/purge` with `NUXT_CACHE_PURGE_TOKEN` (`vue-faq-layer` 0.4.0 or later; earlier layers read `NUXT_SITE_CACHE_PURGE_TOKEN`, which nuxt-site-config publishes in every page's payload). Without the keys nothing is sent. A save refused by the locale check sends nothing, and a failing or slow site never fails the save.
|
||||
|
||||
### Winter import
|
||||
|
||||
|
||||
Reference in New Issue
Block a user