Nginx cache configuration for logged-in WordPress users?

gotdoge

Registered
Feb 5, 2021
4
0
1
US
cPanel Access Level
Root Administrator
I have a site where, with caching enabled, Nginx is causing problems with user sessions. If logged in and attempting to navigate to another page that was previously cached, it logs them out and takes them to a login screen or directs them to a cached, non-logged-in version of the page. With caching disabled, everything works as expected.

Should this be the case? Is there any documentation to help with this configuration? Can someone provide me a working example of a configuration they are using to have this working as expected?

I saw this document as well: https://support.cpanel.net/hc/en-us...l-Website-Caching-for-cPanel-s-Provided-NGINX

That seems to suggest an Apache configuration. Would it be better handled there than Nginx? What kind of Apache configuration would I need to set up?