Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the torden branch of ngx_cache_purge #306

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jun 13, 2023

  1. Add support for the torden branch of ngx_cache_purge

    The torden branch has support for `purge_all` with the following
    directive added to the nginx configuration:
    
    ```
    location = /purgeall {
    	fastcgi_pass		unix:/dev/null;
    	fastcgi_cache		WORDPRESS;
    	fastcgi_cache_purge	PURGE purge_all from 127.0.0.1;
    }
    ```
    
    This makes it possible to purge the cache on systems where Nginx is
    running as a different user to the PHP process.
    
    Note, the `unix:/dev/null` in the above example is not a placeholder,
    the module needs `fastcgi_pass` set to something valid or it will not
    function, even though it never uses the value provided.
    gnif committed Jun 13, 2023
    Configuration menu
    Copy the full SHA
    2918b73 View commit details
    Browse the repository at this point in the history