2

I am running an Ubuntu 20.04 LEMP server with wordpress installed on it. I am using the nginx.org repository for nginx, but I compiled the cache-purge module (ngx_http_cache_purge_module.so) from source with my current nginx.org installation. However, I don't know how to automatically purge the cache using this module.

  1. Is this recompiled module now compatible with my nginx.org installation (i used --compat)

    if so

  2. How can I use this module to automatically purge my cache?

DanRan
  • 73
  • 1
  • 3
  • 22

1 Answers1

0

You can install for example https://wordpress.org/plugins/nginx-helper/ plugin, which will interface with the nginx cache purge module.

Tero Kilkanen
  • 36,796
  • 3
  • 41
  • 63
  • As noted in the original post, i already compiled and loaded that plugin into nginx. the question is how to activate it and make it work. – DanRan Dec 11 '21 at 14:24
  • @DanRan I understood that you have installed the nginx cache purge module. In addition to that, you need to install WordPress plugin, which will then tell nginx cache purge module to purge caches. – Tero Kilkanen Dec 11 '21 at 15:43
  • @TeroKilkanen My mistake I misunderstoond you! So to be clear, aside from loading the module, there is nothing else in nginx i have to do to activate cache purging with the plugin? No "on" directives or anything in nginx? – DanRan Dec 11 '21 at 15:46
  • Actually that part depends on which exact module you compiled. https://github.com/FRiCKLE/ngx_cache_purge/ is one of the most popular ones. It requires configuration. Also the WordPress plugin tells what configuration you need. – Tero Kilkanen Dec 11 '21 at 19:54