Plugin Directory

Changeset 3397813


Ignore:
Timestamp:
11/18/2025 07:38:23 AM (4 months ago)
Author:
leopardhost
Message:

v2.0.7: fix option display (#33)

Location:
tnc-toolbox
Files:
18 added
3 edited

Legend:

Unmodified
Added
Removed
  • tnc-toolbox/trunk/core/core.php

    r3395328 r3397813  
    4343        add_action('init', array($this, 'add_hooks'));
    4444       
    45         // Register capability-dependent hooks after WP is fully loaded
    46         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'));
    4747    }
    4848
  • tnc-toolbox/trunk/readme.txt

    r3395328 r3397813  
    66Tags: NGINX, Cache Purge, Web Performance, Automatic Purge, Freeware
    77Tested up to: 6.8
    8 Stable tag: 2.0.6
     8Stable tag: 2.0.7
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    5353_(* Change to main plugin file name may result in deactivation)_
    5454
     55== Verifying cP+WHM Logs ==
     56
     57**If you'd like to ensure actions are firing properly at a deeper level:**
     58
     591. WHM > Tweak Settings > Logging > Enable cPanel API Log > On
     602. WHM > Terminal > `tail -f /usr/local/cpanel/logs/api_log`
     613. WordPress > Update a Post/Page, or explicitly Purge
     624. WHM > Terminal > You should see the action fire!
     635. WHM > Terminal > Ctrl+C to close the tail
     64
     65Note: 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:**
     751. NGINX Caching Proxy (ahead of Apache)
     762. WP Super Cache, WP Rocket, etc on-site
     773. htaccess/etc rules for Browser Caching
     78
     79**This way, you can ensure maximum efficiency!**
     80
     81The 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
    5583== Screenshots ==
    5684
     
    78106**Yes!** You can use `WP-CLI` to install **tnc-toolbox** for all users!
    79107
    80 == Caching Deployments ==
    81 
    82 **Caching ideals:**
    83 - Don't forget, ea-NGINX (reverse proxy caching) is meant to be 2nd-level
    84 - ie. Make sure your WP site also has on-site caching, like WP Super Cache
    85 - 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-site
    90 3. htaccess/etc rules for Browser Caching
    91 
    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 
    96108== Installation ==
    97109
    98 **Pre-requisites:**
     110**Pre-reqs:**
     111
    991121. To use ea-NGINX features, your Hosting needs to be on cPanel
    1001132. Acquire a cPanel API Token (cPanel > Manage API Tokens)
     
    102115
    103116**How to install:**
     117
    1041181. Go to `Plugins` in WP-Admin
    1051192. Click on the button `Add New`
     
    1091236. Save the config & use WP as-normal!
    110124
    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
     129On every website running the plugin, check that:
     130
     1311. Website is reporting v2.x.x plugin version.
     1322. Plugin has been activated post-update. *
     1333. Config exists in the plugin settings.
     1344. API status checker reports OK.
     1355. /wp-content/tnc-toolbox-config/ folder is gone.
     136
     137_(* Change to main plugin file name may result in deactivation)_
    112138
    113139== Changelog ==
    114140
     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
    115145= 2.0.6: Nov 14, 2025 =
    116 * Cache Purge: Loosen required permission (edit_posts)
     146* Cache Purge: Loosen required permission (to: edit_posts)
    117147
    118148= 2.0.5: Nov 13, 2025 =
    119 * Security: Restrict actions to Cron/Hook & via Perms
     149* Security: Restrict actions to Cron/Hook & via Permissions
    120150
    121151= 2.0.4: Nov 11, 2025 =
     
    133163
    134164= 2.0.0: Nov 6, 2025 =
    135 * NOTE: MAJOR REBUILD, PLEASE TEST BEFORE DEPLOYING
     165* MAJOR REBUILD: You may need to RE-ACTIVATE POST-UPDATE
    136166* Feature: Add direct quota info re: API connected OK (#5)
    137167* Security: Move config from files to WordPress database (#6)
  • tnc-toolbox/trunk/tnc-toolbox.php

    r3395328 r3397813  
    44 *
    55 * @package           TNCTOOLBOX
    6  * @author            The Network Crew Pty Ltd (TNC & Co.)
     6 * @author            The Network Crew Pty Ltd (Merlot Digital)
    77 * @license           gplv3
    8  * @version           2.0.6
     8 * @version           2.0.7
    99 *
    1010 * @wordpress-plugin
     
    1212 * Plugin URI:        https://merlot.digital
    1313 * Description:       Adds functionality to WP - designed for NGINX-powered Servers on cPanel+WHM. Made to help you fly online!
    14  * Version:           2.0.6
    15  * Author:            The Network Crew Pty Ltd (TNC & Co.)
     14 * Version:           2.0.7
     15 * Author:            The Network Crew Pty Ltd (Merlot Digital)
    1616 * Author URI:        https://tnc.works
    1717 * Domain Path:       /locale
     
    3030
    3131// Plugin version
    32 define('TNCTOOLBOX_VERSION', '2.0.6');
     32define('TNCTOOLBOX_VERSION', '2.0.7');
    3333
    3434// Plugin Root File
Note: See TracChangeset for help on using the changeset viewer.