Changeset 3397813
- Timestamp:
- 11/18/2025 07:38:23 AM (4 months ago)
- Location:
- tnc-toolbox
- Files:
-
- 18 added
- 3 edited
-
tags/2.0.7 (added)
-
tags/2.0.7/assets (added)
-
tags/2.0.7/assets/index.php (added)
-
tags/2.0.7/assets/styles-config.css (added)
-
tags/2.0.7/assets/tnc-icon-light.png (added)
-
tags/2.0.7/core (added)
-
tags/2.0.7/core/core.php (added)
-
tags/2.0.7/core/index.php (added)
-
tags/2.0.7/core/settings.php (added)
-
tags/2.0.7/index.php (added)
-
tags/2.0.7/license.txt (added)
-
tags/2.0.7/locale (added)
-
tags/2.0.7/locale/index.php (added)
-
tags/2.0.7/readme.txt (added)
-
tags/2.0.7/tnc-toolbox.php (added)
-
tags/2.0.7/vendor (added)
-
tags/2.0.7/vendor/cpanel-uapi.php (added)
-
tags/2.0.7/vendor/index.php (added)
-
trunk/core/core.php (modified) (1 diff)
-
trunk/readme.txt (modified) (6 diffs)
-
trunk/tnc-toolbox.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tnc-toolbox/trunk/core/core.php
r3395328 r3397813 43 43 add_action('init', array($this, 'add_hooks')); 44 44 45 // Register capability-dependent hooks after WP is fully loaded46 add_action(' admin_init', array($this, 'add_capability_dependent_hooks'));45 // Register capability-dependent hooks 46 add_action('init', array($this, 'add_capability_dependent_hooks')); 47 47 } 48 48 -
tnc-toolbox/trunk/readme.txt
r3395328 r3397813 6 6 Tags: NGINX, Cache Purge, Web Performance, Automatic Purge, Freeware 7 7 Tested up to: 6.8 8 Stable tag: 2.0. 68 Stable tag: 2.0.7 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 53 53 _(* Change to main plugin file name may result in deactivation)_ 54 54 55 == Verifying cP+WHM Logs == 56 57 **If you'd like to ensure actions are firing properly at a deeper level:** 58 59 1. WHM > Tweak Settings > Logging > Enable cPanel API Log > On 60 2. WHM > Terminal > `tail -f /usr/local/cpanel/logs/api_log` 61 3. WordPress > Update a Post/Page, or explicitly Purge 62 4. WHM > Terminal > You should see the action fire! 63 5. WHM > Terminal > Ctrl+C to close the tail 64 65 Note: To do this, you require `root` access to the Server. 66 67 == Caching Deployments == 68 69 **Caching ideals:** 70 - Don't forget, ea-NGINX (reverse proxy caching) is meant to be 2nd-level 71 - ie. Make sure your WP site also has on-site caching, like WP Super Cache 72 - You can go further with caching, and should: like browser-caching assets! 73 74 **3-layer Cache:** 75 1. NGINX Caching Proxy (ahead of Apache) 76 2. WP Super Cache, WP Rocket, etc on-site 77 3. htaccess/etc rules for Browser Caching 78 79 **This way, you can ensure maximum efficiency!** 80 81 The key is to purge when stale, so properly configuring your WP Plugin Cache is critical to ensuring that you don't end up with cache misses due to stale data that could've/should've been purged by garbage collection, preloading, etc, rule-sets. 82 55 83 == Screenshots == 56 84 … … 78 106 **Yes!** You can use `WP-CLI` to install **tnc-toolbox** for all users! 79 107 80 == Caching Deployments ==81 82 **Caching ideals:**83 - Don't forget, ea-NGINX (reverse proxy caching) is meant to be 2nd-level84 - ie. Make sure your WP site also has on-site caching, like WP Super Cache85 - You can go further with caching, and should: like browser-caching assets!86 87 **3-layer Cache:**88 1. NGINX Caching Proxy (ahead of Apache)89 2. WP Super Cache, WP Rocket, etc on-site90 3. htaccess/etc rules for Browser Caching91 92 **This way, you can ensure maximum efficiency!**93 94 The key is to purge when stale, so properly configuring your WP Plugin Cache is critical to ensuring that you don't end up with cache misses due to stale data that could've/should've been purged by garbage collection, preloading, etc, rule-sets.95 96 108 == Installation == 97 109 98 **Pre-requisites:** 110 **Pre-reqs:** 111 99 112 1. To use ea-NGINX features, your Hosting needs to be on cPanel 100 113 2. Acquire a cPanel API Token (cPanel > Manage API Tokens) … … 102 115 103 116 **How to install:** 117 104 118 1. Go to `Plugins` in WP-Admin 105 119 2. Click on the button `Add New` … … 109 123 6. Save the config & use WP as-normal! 110 124 111 https://docs.cpanel.net/cpanel/security/manage-api-tokens-in-cpanel/ 125 [cPanel Docs re: API Tokens](https://docs.cpanel.net/cpanel/security/manage-api-tokens-in-cpanel/) 126 127 ** Updating from v1 to v2:** 128 129 On every website running the plugin, check that: 130 131 1. Website is reporting v2.x.x plugin version. 132 2. Plugin has been activated post-update. * 133 3. Config exists in the plugin settings. 134 4. API status checker reports OK. 135 5. /wp-content/tnc-toolbox-config/ folder is gone. 136 137 _(* Change to main plugin file name may result in deactivation)_ 112 138 113 139 == Changelog == 114 140 141 = 2.0.7: Nov 18, 2025 = 142 * Global Script: Update tool now purges artifact configs. 143 * Off/On: Fix conditional display only in Admin Area (#33) 144 115 145 = 2.0.6: Nov 14, 2025 = 116 * Cache Purge: Loosen required permission ( edit_posts)146 * Cache Purge: Loosen required permission (to: edit_posts) 117 147 118 148 = 2.0.5: Nov 13, 2025 = 119 * Security: Restrict actions to Cron/Hook & via Perm s149 * Security: Restrict actions to Cron/Hook & via Permissions 120 150 121 151 = 2.0.4: Nov 11, 2025 = … … 133 163 134 164 = 2.0.0: Nov 6, 2025 = 135 * NOTE: MAJOR REBUILD, PLEASE TEST BEFORE DEPLOYING165 * MAJOR REBUILD: You may need to RE-ACTIVATE POST-UPDATE 136 166 * Feature: Add direct quota info re: API connected OK (#5) 137 167 * Security: Move config from files to WordPress database (#6) -
tnc-toolbox/trunk/tnc-toolbox.php
r3395328 r3397813 4 4 * 5 5 * @package TNCTOOLBOX 6 * @author The Network Crew Pty Ltd ( TNC & Co.)6 * @author The Network Crew Pty Ltd (Merlot Digital) 7 7 * @license gplv3 8 * @version 2.0. 68 * @version 2.0.7 9 9 * 10 10 * @wordpress-plugin … … 12 12 * Plugin URI: https://merlot.digital 13 13 * Description: Adds functionality to WP - designed for NGINX-powered Servers on cPanel+WHM. Made to help you fly online! 14 * Version: 2.0. 615 * Author: The Network Crew Pty Ltd ( TNC & Co.)14 * Version: 2.0.7 15 * Author: The Network Crew Pty Ltd (Merlot Digital) 16 16 * Author URI: https://tnc.works 17 17 * Domain Path: /locale … … 30 30 31 31 // Plugin version 32 define('TNCTOOLBOX_VERSION', '2.0. 6');32 define('TNCTOOLBOX_VERSION', '2.0.7'); 33 33 34 34 // Plugin Root File
Note: See TracChangeset
for help on using the changeset viewer.