Skip to content

Commit

Permalink
Update Staticache docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasbestle authored Sep 16, 2023
1 parent 861c40b commit 4792608
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/plugins/getkirby/staticache/plugin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<!-- static YYYY-MM-DDT01:02:03+00:00 -->` to the end of every cached HTML file by default. You can override or disable this comment in the cache configuration:
Expand Down

0 comments on commit 4792608

Please sign in to comment.