Skip to content

Commit d3ad688

Browse files
committed
v2.0.8: Scheduled Posts
1 parent 1ec43a2 commit d3ad688

File tree

4 files changed

+58
-29
lines changed

4 files changed

+58
-29
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# Changelog
22
All notable changes to TNC Toolbox for WordPress will be documented in this file.
33

4+
## [2.0.8] - 2025-12-03
5+
6+
### 🚀 Feature
7+
- Scheduled Posts: Support scheduled post go-lives (#34)
8+
9+
### 💅 Polish
10+
- WordPress 6.9: Bump tested-to version from major v6.8
11+
412
## [2.0.7] - 2025-11-18
513

614
### 💅 Polish

tnc-toolbox/core/core.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public function add_hooks() {
6161
// Cache purge actions
6262
add_action('admin_post_nginx_cache_purge', array($this, 'nginx_cache_purge'));
6363
add_action('post_updated', array($this, 'purge_cache_on_update'), 10, 3);
64+
add_action('transition_post_status', array($this, 'purge_cache_on_transition'), 10, 3);
6465
add_action('_core_updated_successfully', function() { TNC_cPanel_UAPI::make_api_request('NginxCaching/clear_cache', [], true); });
6566

6667
// Notices (Admin GUI)
@@ -261,7 +262,7 @@ public function nginx_cache_on() {
261262
}
262263

263264
/**
264-
* Automatic cache purging
265+
* Automatic cache purging on post update
265266
*/
266267
public function purge_cache_on_update($post_id, $post_after, $post_before) {
267268
if ('publish' === $post_after->post_status ||
@@ -271,6 +272,16 @@ public function purge_cache_on_update($post_id, $post_after, $post_before) {
271272
}
272273
}
273274

275+
/**
276+
* Automatic cache purging on post status transition
277+
*/
278+
public function purge_cache_on_transition($new_status, $old_status, $post) {
279+
if ( 'publish' === $new_status && 'publish' !== $old_status ) {
280+
// This hook also fires on-update, so we verify status change has occurred
281+
TNC_cPanel_UAPI::make_api_request('NginxCaching/clear_cache', [], true);
282+
}
283+
}
284+
274285
/**
275286
* Display admin notices
276287
*/

tnc-toolbox/readme.txt

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ Plugin URI: https://merlot.digital
44
Donate link:
55
Contributors:
66
Tags: NGINX, Cache Purge, Web Performance, Automatic Purge, Freeware
7-
Tested up to: 6.8
8-
Stable tag: 2.0.7
7+
Tested up to: 6.9
8+
Stable tag: 2.0.8
99
License: GPLv3
1010
License URI: https://www.gnu.org/licenses/gpl-3.0.html
1111

12-
Made to help you fly online! Adds functionality (cache purge, etc) to WP - designed for NGINX-powered Servers on cPanel+WHM.
12+
Designed for ea-NGINX (Cache/Proxy) on cPanel+WHM. Made to help you fly online! 🚀
1313

1414

1515
== Description ==
@@ -33,13 +33,30 @@ With a heavy focus on the Apache + NGINX as Reverse Caching Proxy web stack, the
3333
- Only allows Admins to enable/disable caching & edit configs
3434
- Shows you the status of cP UAPI via disk usage info
3535
- Purge when any ACF config options are saved
36+
- Supports scheduled post publishing!
3637

3738
**Eager for even more capabilities?**
3839

3940
We plan to add further features as clients & the community request it.
4041

4142
_Please let us know your ideas on [GitHub](https://github.com/The-Network-Crew/TNC-Toolbox-for-WordPress/) - we'd love to hear from you!_
4243

44+
== Caching Deployments ==
45+
46+
**Caching ideals:**
47+
- Don't forget, ea-NGINX (reverse proxy caching) is meant to be 2nd-level
48+
- ie. Make sure your WP site also has on-site caching, like WP Super Cache
49+
- You can go further with caching, and should: like browser-caching assets!
50+
51+
**3-layer Cache:**
52+
1. NGINX Caching Proxy (ahead of Apache)
53+
2. WP Super Cache, WP Rocket, etc on-site
54+
3. htaccess/etc rules for Browser Caching
55+
56+
**This way, you can ensure maximum efficiency!**
57+
58+
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.
59+
4360
== Updating from v1 to v2.x.x ==
4461

4562
**On every website running the plugin, check that:**
@@ -64,22 +81,6 @@ _(* Change to main plugin file name may result in deactivation)_
6481

6582
Note: To do this, you require `root` access to the Server.
6683

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-
8384
== Screenshots ==
8485

8586
1. Top Menu Bar options for NGINX Caching.
@@ -110,7 +111,7 @@ This is only visible if you are logged in as a WP Administrator.
110111
**Pre-reqs:**
111112

112113
1. To use ea-NGINX features, your Hosting needs to be on cPanel
113-
2. Acquire a cPanel API Token (cPanel > Manage API Tokens)
114+
2. Acquire a [cPanel API Token](https://docs.cpanel.net/cpanel/security/manage-api-tokens-in-cpanel/) (cPanel > Manage API Tokens)
114115
3. Configure the TNC Toolbox plugin inside WordPress
115116

116117
**How to install:**
@@ -122,12 +123,9 @@ This is only visible if you are logged in as a WP Administrator.
122123
5. Enter your API Token, User & Hostname
123124
6. Save the config & use WP as-normal!
124125

125-
[cPanel Docs re: API Tokens](https://docs.cpanel.net/cpanel/security/manage-api-tokens-in-cpanel/)
126-
127-
** Updating from v1 to v2:**
126+
**Updating from v1 to v2:**
128127

129128
On every website running the plugin, check that:
130-
131129
1. Website is reporting v2.x.x plugin version.
132130
2. Plugin has been activated post-update. *
133131
3. Config exists in the plugin settings.
@@ -138,6 +136,10 @@ _(* Change to main plugin file name may result in deactivation)_
138136

139137
== Changelog ==
140138

139+
= 2.0.8: Dec 3, 2025 =
140+
* Scheduled Posts: Support scheduled post go-lives (#34)
141+
* WordPress 6.9: Bump tested-to version from major v6.8
142+
141143
= 2.0.7: Nov 18, 2025 =
142144
* Global Script: Update tool now purges artifact configs.
143145
* Off/On: Fix conditional display only in Admin Area (#33)
@@ -186,3 +188,11 @@ _(* Change to main plugin file name may result in deactivation)_
186188
= 1.4.0: Feb 21, 2025 =
187189
* Truncate max-length of relayed API error to GUI (#22)
188190
* Auto-purge when WP Core is successfully upgraded (#23)
191+
192+
== Upgrade Notice ==
193+
194+
= 2.0.5 =
195+
This release contains a security fix. It is of minor severity.
196+
197+
= 2.0.0 =
198+
This release contains a security fix. Upgrade v1 to v2 immediately.

tnc-toolbox/tnc-toolbox.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
* @package TNCTOOLBOX
66
* @author The Network Crew Pty Ltd (Merlot Digital)
77
* @license gplv3
8-
* @version 2.0.7
8+
* @version 2.0.8
99
*
1010
* @wordpress-plugin
1111
* Plugin Name: TNC Toolbox: Web Performance
1212
* Plugin URI: https://merlot.digital
13-
* Description: Adds functionality to WP - designed for NGINX-powered Servers on cPanel+WHM. Made to help you fly online!
14-
* Version: 2.0.7
13+
* Description: Designed for ea-NGINX (Cache/Proxy) on cPanel+WHM. Made to help you fly online!
14+
* Version: 2.0.8
1515
* Author: The Network Crew Pty Ltd (Merlot Digital)
1616
* Author URI: https://tnc.works
1717
* Domain Path: /locale
@@ -29,7 +29,7 @@
2929
define('TNCTOOLBOX_NAME', 'TNC Toolbox');
3030

3131
// Plugin version
32-
define('TNCTOOLBOX_VERSION', '2.0.7');
32+
define('TNCTOOLBOX_VERSION', '2.0.8');
3333

3434
// Plugin Root File
3535
define('TNCTOOLBOX_PLUGIN_FILE', __FILE__);

0 commit comments

Comments
 (0)