Hi,
So we continue to have the login issue on our website with the cache.
We need to do a cache purge (by the webinoly command) each morning, in order to let our users login on the website.
We tried many rules already, to don't cache our login page (that is
https://xxxx.com/connexion/), but nothing is working..
We have :
if ($request_uri ~* "/connexion/|/password-recover/|/password-reset/") {
set $skip_cache 1;
set $skip_reason "${skip_reason}-URI";
}
location ~ \.php$ {
try_files $uri =404;
# add cache status
add_header WP-Bullet-Fastcgi-Cache $upstream_cache_status;
# add the cache skip reason if relevant
add_header WP-Bullet-Skip $skip_reason;
include fastcgi_params;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_cache_bypass $http_secret_header $skip_cache;
fastcgi_no_cache $skip_cache;
fastcgi_cache WORDPRESS;
fastcgi_cache_valid 404 1m;
fastcgi_cache_valid 60m;
}