# Caching on a WP-powered membership site based on external auth?

**URL:** https://community.kinsta.com/t/caching-on-a-wp-powered-membership-site-based-on-external-auth/3022
**Category:** Questions
**Created:** [February 5, 2024, 3:00pm UTC](https://community.kinsta.com/t/caching-on-a-wp-powered-membership-site-based-on-external-auth/3022 "2024-02-05T15:00:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![llago](https://avatars.discourse-cdn.com/v4/letter/l/9dc877/32.png) [@llago](https://community.kinsta.com/u/llago)
#### Post date: [February 5, 2024, 3:00pm UTC](https://community.kinsta.com/t/caching-on-a-wp-powered-membership-site-based-on-external-auth/3022/1 "2024-02-05T15:00:44Z")

</div>

Hello,  
I’m developing a website based on wordpress with a paywall. The authentication comes from an external service that tells me some information about the user. That means also that I don’t use WP users for that purpose.

The client wants to move the site on kinsta, but I remember that the caching is very “intrusive” and are in place some exceptions but only for woocommerce. It’s possible to ask for a custom cookie to bypass the page-level caching? For example, if the request has custom\_login\_cookie set, then the page-level caching is ignored.

Thank you,

---

<div class="post-metadata">

### Author: ![Adrian\_L](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/adrian_l/32/2810_2.png) [@Adrian\_L](https://community.kinsta.com/u/Adrian_L)
#### Post date: [February 5, 2024, 11:19pm UTC](https://community.kinsta.com/t/caching-on-a-wp-powered-membership-site-based-on-external-auth/3022/2 "2024-02-05T23:19:29Z")

</div>

Hi @llago 👋 Welcome to the Kinsta Community!

We’re happy to help. If you need to bypass our page cache based on a specific cookie, we’ve got you covered with a custom NGinx rule. You can get in touch with our Support team to get the Nginx custom rule set up on your website. 👍

---

<div class="post-metadata">

### Author: ![llago](https://avatars.discourse-cdn.com/v4/letter/l/9dc877/32.png) [@llago](https://community.kinsta.com/u/llago)
#### Post date: [February 6, 2024, 1:08pm UTC](https://community.kinsta.com/t/caching-on-a-wp-powered-membership-site-based-on-external-auth/3022/3 "2024-02-06T13:08:04Z")

</div>

Thanks @Adrian_L !  
I will try and I will update this thread with my solution. Maybe it can help other people searching for something similar.

Have a nice day

---

<div class="post-metadata">

### Author: ![Agus](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/agus/32/1515_2.png) [@Agus](https://community.kinsta.com/u/Agus)
#### Post date: [February 7, 2024, 1:42am UTC](https://community.kinsta.com/t/caching-on-a-wp-powered-membership-site-based-on-external-auth/3022/4 "2024-02-07T01:42:10Z")

</div>

Sounds good @llago ! 👍

Please take your time, and sure you can update this thread and share with the working solution you have later on (when available)! Thank you! 😄 that would surely help us all in the future (that may run into the same/similar case or issue)!

Best regards,  
Agus Utomo
