Plugin Directory

Changeset 3391021


Ignore:
Timestamp:
11/06/2025 10:44:07 AM (5 months ago)
Author:
leopardhost
Message:

v2.0.3: ACF Auto-purge

Location:
tnc-toolbox
Files:
17 added
3 edited

Legend:

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

    r3390889 r3391021  
    5454        add_filter('plugin_action_links_' . TNCTOOLBOX_PLUGIN_BASE, array($this, 'add_plugin_action_link'), 20);
    5555
    56         // Admin bar customization
     56        // Admin bar customisation
    5757        add_action('admin_enqueue_scripts', array($this, 'enqueue_custom_css'));
    5858        add_action('admin_bar_menu', array($this, 'add_parent_menu_entry'), 99);
     
    6464        add_action('_core_updated_successfully', array($this, 'nginx_cache_purge'));
    6565
    66         // Notices
     66        // Notices (Admin GUI)
    6767        add_action('admin_notices', array($this, 'display_admin_notices'));
     68
     69        // ACF Save (#24)
     70        if (has_action('acf/options_page/save') === true) {
     71            add_action('acf/options_page/save', TNC_cPanel_UAPI::make_api_request('NginxCaching/clear_cache'), 10, 3);
     72        }
    6873    }
    6974
     
    253258        if ('publish' === $post_after->post_status ||
    254259            ($post_before->post_status === 'publish' && $post_after->post_status !== 'trash')) {
    255             // Use the UAPI directly rather than function, to support automated
     260            // Use the UAPI directly rather than function, to support automated (#31)
    256261            TNC_cPanel_UAPI::make_api_request('NginxCaching/clear_cache');
    257262        }
  • tnc-toolbox/trunk/readme.txt

    r3390889 r3391021  
    88Tested up to: 6.8
    99Requires PHP: 8.0
    10 Stable tag: 2.0.2
     10Stable tag: 2.0.3
    1111License: GPLv3
    1212License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    9595== Changelog ==
    9696
     97= 2.0.3: Nov 6, 2025 =
     98* Auto-purge (ACF): When you save ACF config, purge! (#24)
     99
    97100= 2.0.2: Nov 6, 2025 =
    98101* Fix: Settings save no longer errors (relocated func.) (#32)
     
    126129* Truncate max-length of relayed API error to GUI (#22)
    127130* Auto-purge when WP Core is successfully upgraded (#23)
    128 
    129 = 1.3.9: Dec 31, 2024 =
    130 * Pass-through error from cP API back to WP GUI (#22)
    131 * Improve uncaught error wording, and clarify on user type
    132 
    133 = 1.3.8: Dec 18, 2024 =
    134 * Update compatibility to WP 6.7.x sub-major (#20)
    135 * Slight refinement to wording of not-configured prompt (#21)
    136 
    137 = 1.3.7: May 9, 2024 =
    138 * Declare class firstly, resolve warnings (#18)
    139 * Slight improvements to GUI/Menu wording
    140 
    141 = 1.3.6: May 2, 2024 =
    142 * Pluggable: Remove dependency, ie. support multi-site (#17)
    143 * Re-factor: Merge API calls into single function (#16)
    144 * GPLv3: Consistent, no longer partial v2 & v3
  • tnc-toolbox/trunk/tnc-toolbox.php

    r3390889 r3391021  
    66 * @author            The Network Crew Pty Ltd (TNC & Co.)
    77 * @license           gplv3
    8  * @version           2.0.2
     8 * @version           2.0.3
    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.2
     14 * Version:           2.0.3
    1515 * Requires at least: 6.0
    1616 * Requires PHP:      8.0
     
    3232
    3333// Plugin version
    34 define('TNCTOOLBOX_VERSION', '2.0.2');
     34define('TNCTOOLBOX_VERSION', '2.0.3');
    3535
    3636// Plugin Root File
Note: See TracChangeset for help on using the changeset viewer.