Changeset 3480642
- Timestamp:
- 03/11/2026 08:19:00 PM (3 weeks ago)
- Location:
- rank-authority
- Files:
-
- 9 added
- 2 edited
-
tags/1.0.30 (added)
-
tags/1.0.30/assets (added)
-
tags/1.0.30/assets/icon.svg (added)
-
tags/1.0.30/rank-authority.php (added)
-
tags/1.0.30/readme.txt (added)
-
tags/1.0.30/templates (added)
-
tags/1.0.30/templates/category-geo.php (added)
-
tags/1.0.30/templates/page-geo.php (added)
-
tags/1.0.30/uninstall.php (added)
-
trunk/rank-authority.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rank-authority/trunk/rank-authority.php
r3479769 r3480642 4 4 * Plugin URI: https://rankauthority.com/plugins/rankauthority 5 5 * Description: Secure API connector to publish posts / overwrite posts from the RA Dashboard to WordPress. Token reset now available to all administrators. 6 * Version: 1.0. 296 * Version: 1.0.30 7 7 * Author: Rank Authority 8 8 * Author URI: https://rankauthority.com … … 1349 1349 } 1350 1350 1351 /** Clear post/page cache so public view shows updated content immediately */ 1352 private function clear_post_cache($post_id) { 1353 clean_post_cache($post_id); 1354 if (function_exists('rocket_clean_post')) { 1355 rocket_clean_post($post_id); // WP Rocket 1356 } 1357 if (function_exists('w3tc_pgcache_flush_post')) { 1358 w3tc_pgcache_flush_post($post_id); // W3 Total Cache 1359 } elseif (function_exists('w3tc_flush_post')) { 1360 w3tc_flush_post($post_id); 1361 } 1362 do_action('litespeed_purge_post', $post_id); // LiteSpeed Cache 1363 do_action('rank_authority_post_cache_cleared', $post_id); 1364 } 1365 1351 1366 /** Publish post */ 1352 1367 public function publish_post($request) { … … 1633 1648 $permalink = get_permalink($post_id); 1634 1649 1650 // Clear post cache so public view shows new content immediately 1651 $this->clear_post_cache($post_id); 1652 1635 1653 // Build response with final schema when schema was stored 1636 1654 $response = [ … … 1767 1785 return $updated_id; 1768 1786 } 1787 1788 // Clear post cache so public view shows new content immediately 1789 $this->clear_post_cache($updated_id); 1769 1790 1770 1791 // Update featured image if provided (by media ID) -
rank-authority/trunk/readme.txt
r3479769 r3480642 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 297 Stable tag: 1.0.30 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 137 137 138 138 == Changelog == 139 140 = 1.0.30 = 141 * PUT response now includes full updated content (title, content, excerpt, etc.) 142 * Auto-clear post cache after POST/PUT so public view shows new content immediately 143 * Supports WP Rocket, W3 Total Cache, LiteSpeed Cache; hook `rank_authority_post_cache_cleared` for custom cache plugins 139 144 140 145 = 1.0.29 = … … 315 320 == Upgrade Notice == 316 321 322 = 1.0.30 = 323 PUT now returns full updated content and auto-clears cache so public view updates immediately without manual cache purge. 324 317 325 = 1.0.29 = 318 326 New GET endpoint to fetch post/page content by ID. Use the same Bearer token to retrieve published, draft, and private content.
Note: See TracChangeset
for help on using the changeset viewer.