manifest / performance / nginx-nuke
Nginx Nuke
simple plugin to allow clearing of nginx cache programatically from WordPress
by Brian Zeligson · github.com/streetwise-media/nginx-nuke · website
★ 2stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/streetwise-media/nginx-nuke/archive/refs/heads/master.zipNginx Nuke
This plugin provides a simple way to flush nginx cache programatically from WordPress. It requires your nginx reverse proxy to run under the same account as your apache server.
To configure, set the $cache_dir property to the absolute path to your nginx cache folder.
Add any additional events to the actions array that should trigger a cache clear, or simply call NginxNuke::clear() from your code.