Skip to content

Commit

Permalink
Protected Content: Add note that protected pages are excluded from th…
Browse files Browse the repository at this point in the history
…e static cache (#1482)
  • Loading branch information
duncanmcclean authored Oct 23, 2024
1 parent be06080 commit 791bf01
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions content/collections/docs/protecting-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 791bf01

Please sign in to comment.