Hi, I'm managing a multi-tenant instance of modx. I'm using nginx as my web server and have recently turned on nginx caching. It's amazing the difference it's made to these sites! Really amazing!
My only problem is that, it's interfering with the manager, despite setting directives to not cache the manager.
The problem I experience is that, once I've logged out, if I try to login again, the manager tells me that my session has expired and it presents me with a login modal, but despite re-authenticating, I can never get rid past this point (unless I clear the nginx cache).
Obviously something is getting cached, which is mucking with the session, but I don't know how to overcome this. I've tried so many options...
My current directives are:
if ($request_uri ~* "/manager/") {
set $skip_cache 1;
}
and
location /manager {
set $skip_cache 1;
add_header Cache-Control no-cache;
}
If anyone has any idea what directives to use, I really appreciate your sharing your learnings