https://wordpress.org/plugins/tnc-toolbox
Tip
Will expand to include other features as requested by community & clients!
- Allows you to purge the EA-NGINX User Cache from within WP
- Automatically purges the cache when a post or page is updated
- Does the same when the WP Core has been successfully upgraded :)
- Allows you to disable or enable the NGINX User Cache from inside WP
- Only presents the options to enable/disable/configure for WP Admins
- For any action, redirects you back to the page you requested it from
- Shows you whether or not the API is working via diagnostic quota info
- Selective cache purging with
ea-nginx-cache-purgemodule (optional) - Slack alert (via Webhook) if WordPress fails to send an email to you
Important
EA-NGINX (Reverse Proxy) by cPanel is supported, not "old school" implementations.
CloudLinux Apache2NGINX (MAx) depends on ea-NGINX so shouldn't cause issues with TNC Toolbox.
- cPanel API Key, cPanel Username & Server Hostname needed in Settings
- Hosting Server must run cPanel+WHM, with the ea-NGINX & Apache stack!
Starting with v2.1.0, you can leverage Selective Cache Purging rather than the entire cache.
To do this, you need to complete some steps - else it will not work. You must be root.
- Install the GetPageSpeed repository (dnf/yum) onto the Server:
dnf -y install https://extras.getpagespeed.com/release-latest.rpm - Install ea-nginx-cache-purge module from GetPageSpeed repo:
dnf -y install ea-nginx-cache-purge - Add
/etc/nginx/conf.d/server-includes/cache-purge.conf
File Contents:proxy_cache_purge PURGE from 127.0.0.1; - Rebuild & Reload:
nginx -t && systemctl reload nginx
We'd like to say a huge thank-you to Danila (GitHub: dvershinin) for this contribution via #35.
- Head to WP-Admin > Plugins, search for "TNC Toolbox"
- Click "Install" for the resulting plugin (this one)
- Once installed, click "Activate" to make it live
- Done! Head to Settings > TNC Toolbox for config
- Configure your API Key, Username & Hostname
Use WP-CLI to install tnc-toolbox for all relevant accounts.
This repo includes scripts for server-wide deploying & updating.
Note: You will need to configure UAPI creds per-website afterwards.
On every website running the plugin, check that:
- Website is reporting v2.x.x plugin version.
- Plugin has been activated post-update. *
- Config exists in the plugin settings.
- API status checker reports OK.
- /wp-content/tnc-toolbox-config/ folder is gone.
(* Change to main plugin file name may result in deactivation)
If you'd like to ensure actions are firing properly at a deeper level:
- WHM > Tweak Settings > Logging > Enable cPanel API Log > On
- WHM > Terminal >
tail -f /usr/local/cpanel/logs/api_log - WordPress > Update a Post/Page, or explicitly Purge
- WHM > Terminal > You should see the action fire!
- WHM > Terminal > Ctrl+C to close the tail
Note: To do this, you require root access to the Server.
Include all info, screenshots, etc, to help our crew.
Note
Please raise an Issue on the GitHub Repository!
Please feel free to contribute by submitting a PR with your proposed changes!
The Network Crew Pty Ltd (TNC)