I have the following issue with ngx_cache_purge. Any help with this will be greatly appreciated.
I'm using the Debian dynamically loaded ngx_cache_purge module in Bullseye. I have Nginx running in one server, and php-fpm running in a separate upstream server, with the goal of being able to horizontally scale php-fpm servers. The webroot is shared by both servers via nfs. With php-fpm running on a single server and all else being the same, purging through ngx_cache_purge works fine, using either curl or nginx-helper. With separate servers the cache fails to clear. Using nginx-helper there are no errors in the logs of nginx-helper, nginx, or php-fpm. Using curl there are no errors in the logs of nginx or php-fpm. The log level of php-fpm is debug, and the log level of nginx is warn. Here is the result I get trying to purge the cache with curl on the two server configuration:
I have the following issue with ngx_cache_purge. Any help with this will be greatly appreciated.
I'm using the Debian dynamically loaded ngx_cache_purge module in Bullseye. I have Nginx running in one server, and php-fpm running in a separate upstream server, with the goal of being able to horizontally scale php-fpm servers. The webroot is shared by both servers via nfs. With php-fpm running on a single server and all else being the same, purging through ngx_cache_purge works fine, using either curl or nginx-helper. With separate servers the cache fails to clear. Using nginx-helper there are no errors in the logs of nginx-helper, nginx, or php-fpm. Using curl there are no errors in the logs of nginx or php-fpm. The log level of php-fpm is debug, and the log level of nginx is warn. Here is the result I get trying to purge the cache with curl on the two server configuration:
curl -vvv -X PURGE -I http://localhost/bookings
<
Thanks,
Kirk