From af386e8087b61b1953cf108adbe52fe79d1a6aa2 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Thu, 10 Oct 2024 11:06:22 +0100 Subject: [PATCH] Protected Content: Add note that protected pages are excluded from the static cache --- content/collections/docs/protecting-content.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/content/collections/docs/protecting-content.md b/content/collections/docs/protecting-content.md index 084df0d26..eb409bdd2 100644 --- a/content/collections/docs/protecting-content.md +++ b/content/collections/docs/protecting-content.md @@ -19,9 +19,11 @@ You can also [create your own drivers](#custom-drivers). Whichever approach you choose, know that it's designed to help you out. We’ve tried to keep the syntax as simple as possible while allowing for flexibility. Because of this, if Statamic sees you’ve set `protect`, but the scheme has been configured incorrectly, _all users will be denied_. -:::tip -This feature only applies to the frontend of your site on pages routed through Statamic (like entry URLs). Custom PHP/Laravel-defined routes and the Control Panel will be unaffected. -::: +## Caveats + +* Protection only applies to the frontend of your site routed through Statamic (like entry URLs). Custom routes defined in your `routes/web.php` file and the Control Panel will be unaffected. +* Protected pages are automatically excluded from the [static cache](https://statamic.dev/static-caching#important-preface). + ## Protecting an entry