<div dir="ltr">Hi,<div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 6, 2018 at 3:05 PM, PGNet Dev <span dir="ltr"><<a href="mailto:pgnet.dev@gmail.com" target="_blank">pgnet.dev@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">For some new WordPress sites, I'll be deploying fastcgi_cache as reverse proxy / page cache, instead of usual Varnish.<br>
<br>
Although there are a number of WP-module-based PURGE options, I prefer that it's handled by the web server.<br>
<br>
A commonly referenced approach is to use the 'FRiCKLE/ngx_cache_purge',<br>
<br>
        <a href="https://github.com/FRiCKLE/ngx_cache_purge/" rel="noreferrer" target="_blank">https://github.com/FRiCKLE/<wbr>ngx_cache_purge/</a><br>
<br>
with associated nginx conf additions,<br>
<br>
        <a href="https://easyengine.io/wordpress-nginx/tutorials/single-site/fastcgi-cache-with-purging/" rel="noreferrer" target="_blank">https://easyengine.io/<wbr>wordpress-nginx/tutorials/<wbr>single-site/fastcgi-cache-<wbr>with-purging/</a><br>
        <a href="https://www.ryadel.com/en/nginx-purge-proxy-cache-delete-invalidate-linux-centos-7/" rel="noreferrer" target="_blank">https://www.ryadel.com/en/<wbr>nginx-purge-proxy-cache-<wbr>delete-invalidate-linux-<wbr>centos-7/</a><br>
<br>
ngx_cache_purge module development appears to have gone stale; no commits since ~ 2014.<br>
<br>
What are your experiences with current use of that module, with latest 1.15x nginx releases?<br>
<br>
Is there a cleaner, nginx-native approach? Or other nginx purge module that's better maintained?<br>
<br>
Comments &/or pointers to any docs, etc would be helpful.<br></blockquote><div><br></div><div>My $0.02 coming from experience building out scalable WP clusters is, stick to Varnish here.<br></div><div><br></div><div>FRiCKLE's module is great, but it would be scary to put into production- have fun with that test/release cycle :p</div><div><br></div><div>The overhead of putting Nginx in front of Varnish is fairly small in the grand scheme of things. What's your motivation to strictly use Nginx?<br><br>There is official support for cache purging with the commercial version of Nginx: <a href="https://www.nginx.com/products/nginx/caching/">https://www.nginx.com/products/nginx/caching/</a>.</div><div><br></div><div>I've seen moderate hardware running Nginx (for TLS offload + WAF) -> Varnish (cache + purge) -> Apache/mod_php do 50k r/s on a single node. One would hope this suffices; it's a stable and proven stack. Again, ngx_cache_purge is great, but any unsupported module in a prod environment is scary when you're not writing the code. ;)</div></div></div></div>