From 479260858186cc5cb144ade9ca5174b289fe85ea Mon Sep 17 00:00:00 2001 From: Lukas Bestle Date: Sat, 16 Sep 2023 18:08:18 +0200 Subject: [PATCH] Update Staticache docs --- content/plugins/getkirby/staticache/plugin.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/plugins/getkirby/staticache/plugin.txt b/content/plugins/getkirby/staticache/plugin.txt index c8a1eb1ee0..4ddf74b6c0 100644 --- a/content/plugins/getkirby/staticache/plugin.txt +++ b/content/plugins/getkirby/staticache/plugin.txt @@ -115,6 +115,8 @@ All pages that are not ignored will automatically be cached on their first visit Please note that already cached pages are unaffected by changes to the `ignore` option. Your web server will pick up the already created files and will not check if the page is cacheable. If you see cached results from ignored pages, please manually clear your cache directory. +Also note that Kirby's default caching logic applies on top of manually ignored pages. If your template uses any methods that depend on the user session or request headers (e.g. `$kirby->session()`, `csrf()`...), your pages will not be cached. + **Custom cache comment:** Staticache adds an HTML comment like `` to the end of every cached HTML file by default. You can override or disable this comment in the cache configuration: