Changeset 3346059
- Timestamp:
- 08/18/2025 12:50:50 AM (4 months ago)
- Location:
- c3-cloudfront-clear-cache
- Files:
-
- 8 edited
- 1 copied
-
tags/7.2.0 (copied) (copied from c3-cloudfront-clear-cache/trunk)
-
tags/7.2.0/c3-cloudfront-clear-cache.php (modified) (1 diff)
-
tags/7.2.0/classes/AWS/Invalidation_Batch_Service.php (modified) (3 diffs)
-
tags/7.2.0/classes/WP/Hooks.php (modified) (1 diff)
-
tags/7.2.0/readme.txt (modified) (3 diffs)
-
trunk/c3-cloudfront-clear-cache.php (modified) (1 diff)
-
trunk/classes/AWS/Invalidation_Batch_Service.php (modified) (3 diffs)
-
trunk/classes/WP/Hooks.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
c3-cloudfront-clear-cache/tags/7.2.0/c3-cloudfront-clear-cache.php
r3337531 r3346059 2 2 /** 3 3 * Plugin Name: C3 Cloudfront Cache Controller 4 * Version: 7. 1.04 * Version: 7.2.0 5 5 * Plugin URI:https://github.com/amimoto-ami/c3-cloudfront-clear-cache 6 6 * Description: Manage CloudFront Cache and provide some fixtures. -
c3-cloudfront-clear-cache/tags/7.2.0/classes/AWS/Invalidation_Batch_Service.php
r3336321 r3346059 108 108 public function create_batch_by_post( string $home_url, string $distribution_id, ?\WP_Post $post = null ) { 109 109 $invalidation_batch = new Invalidation_Batch(); 110 $invalidation_batch->put_invalidation_path( $home_url ); 110 $home_path = $this->hook_service->apply_filters( 'c3_invalidation_post_batch_home_path', $home_url, $post ); 111 $invalidation_batch->put_invalidation_path( $home_path ); 111 112 $invalidation_batch = $this->put_post_invalidation_batch( $invalidation_batch, $post ); 112 113 return $invalidation_batch->get_invalidation_request_parameter( $distribution_id ); … … 122 123 public function create_batch_by_posts( string $home_url, string $distribution_id, array $posts = array() ) { 123 124 $invalidation_batch = new Invalidation_Batch(); 124 $invalidation_batch->put_invalidation_path( $home_url ); 125 $home_path = $this->hook_service->apply_filters( 'c3_invalidation_posts_batch_home_path', $home_url, $posts ); 126 $invalidation_batch->put_invalidation_path( $home_path ); 125 127 foreach ( $posts as $post ) { 126 128 $invalidation_batch = $this->put_post_invalidation_batch( $invalidation_batch, $post ); … … 137 139 public function create_batch_for_all( string $distribution_id ) { 138 140 $invalidation_batch = new Invalidation_Batch(); 139 $invalidation_batch->put_invalidation_path( '/*' ); 141 $all_path = $this->hook_service->apply_filters( 'c3_invalidation_manual_batch_all_path', '/*' ); 142 $invalidation_batch->put_invalidation_path( $all_path ); 140 143 return $invalidation_batch->get_invalidation_request_parameter( $distribution_id ); 141 144 } -
c3-cloudfront-clear-cache/tags/7.2.0/classes/WP/Hooks.php
r3309497 r3346059 26 26 * @param string $name Hook name. 27 27 * @param mixed $value Hooked value. 28 * @param mixed ...$args Additional arguments to pass to the filter. 28 29 */ 29 public function apply_filters( string $name, $value ) {30 return apply_filters( $name, $value );30 public function apply_filters( string $name, $value, ...$args ) { 31 return apply_filters( $name, $value, ...$args ); 31 32 } 32 33 -
c3-cloudfront-clear-cache/tags/7.2.0/readme.txt
r3337531 r3346059 5 5 Requires at least: 4.9.0 6 6 Tested up to: 6.8.1 7 Stable tag: 7. 1.07 Stable tag: 7.2.0 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 98 98 == Changelog == 99 99 100 = 7.2.0 = 101 * [Feature] Add 3 new path adjustment hooks for more granular invalidation control: 102 - `c3_invalidation_post_batch_home_path` - Customize home path for single post invalidation 103 - `c3_invalidation_posts_batch_home_path` - Customize home path for multiple posts invalidation 104 - `c3_invalidation_manual_batch_all_path` - Customize path for manual "clear all" operations 105 * [Enhancement] Update Hooks.php to support variable arguments in apply_filters method 106 * [Compatibility] Maintain full backward compatibility with existing c3_invalidation_items filter 107 100 108 == 7.1.0 == 101 109 * [Feature] Add invalidation detail view with modal popup showing invalidation paths, caller reference, and status … … 186 194 * Fix small bug 187 195 * Add some feature for AMIMOTO Managed hosting user 196 188 197 189 198 = 4.3.1 = -
c3-cloudfront-clear-cache/trunk/c3-cloudfront-clear-cache.php
r3337531 r3346059 2 2 /** 3 3 * Plugin Name: C3 Cloudfront Cache Controller 4 * Version: 7. 1.04 * Version: 7.2.0 5 5 * Plugin URI:https://github.com/amimoto-ami/c3-cloudfront-clear-cache 6 6 * Description: Manage CloudFront Cache and provide some fixtures. -
c3-cloudfront-clear-cache/trunk/classes/AWS/Invalidation_Batch_Service.php
r3336321 r3346059 108 108 public function create_batch_by_post( string $home_url, string $distribution_id, ?\WP_Post $post = null ) { 109 109 $invalidation_batch = new Invalidation_Batch(); 110 $invalidation_batch->put_invalidation_path( $home_url ); 110 $home_path = $this->hook_service->apply_filters( 'c3_invalidation_post_batch_home_path', $home_url, $post ); 111 $invalidation_batch->put_invalidation_path( $home_path ); 111 112 $invalidation_batch = $this->put_post_invalidation_batch( $invalidation_batch, $post ); 112 113 return $invalidation_batch->get_invalidation_request_parameter( $distribution_id ); … … 122 123 public function create_batch_by_posts( string $home_url, string $distribution_id, array $posts = array() ) { 123 124 $invalidation_batch = new Invalidation_Batch(); 124 $invalidation_batch->put_invalidation_path( $home_url ); 125 $home_path = $this->hook_service->apply_filters( 'c3_invalidation_posts_batch_home_path', $home_url, $posts ); 126 $invalidation_batch->put_invalidation_path( $home_path ); 125 127 foreach ( $posts as $post ) { 126 128 $invalidation_batch = $this->put_post_invalidation_batch( $invalidation_batch, $post ); … … 137 139 public function create_batch_for_all( string $distribution_id ) { 138 140 $invalidation_batch = new Invalidation_Batch(); 139 $invalidation_batch->put_invalidation_path( '/*' ); 141 $all_path = $this->hook_service->apply_filters( 'c3_invalidation_manual_batch_all_path', '/*' ); 142 $invalidation_batch->put_invalidation_path( $all_path ); 140 143 return $invalidation_batch->get_invalidation_request_parameter( $distribution_id ); 141 144 } -
c3-cloudfront-clear-cache/trunk/classes/WP/Hooks.php
r3309497 r3346059 26 26 * @param string $name Hook name. 27 27 * @param mixed $value Hooked value. 28 * @param mixed ...$args Additional arguments to pass to the filter. 28 29 */ 29 public function apply_filters( string $name, $value ) {30 return apply_filters( $name, $value );30 public function apply_filters( string $name, $value, ...$args ) { 31 return apply_filters( $name, $value, ...$args ); 31 32 } 32 33 -
c3-cloudfront-clear-cache/trunk/readme.txt
r3337531 r3346059 5 5 Requires at least: 4.9.0 6 6 Tested up to: 6.8.1 7 Stable tag: 7. 1.07 Stable tag: 7.2.0 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 98 98 == Changelog == 99 99 100 = 7.2.0 = 101 * [Feature] Add 3 new path adjustment hooks for more granular invalidation control: 102 - `c3_invalidation_post_batch_home_path` - Customize home path for single post invalidation 103 - `c3_invalidation_posts_batch_home_path` - Customize home path for multiple posts invalidation 104 - `c3_invalidation_manual_batch_all_path` - Customize path for manual "clear all" operations 105 * [Enhancement] Update Hooks.php to support variable arguments in apply_filters method 106 * [Compatibility] Maintain full backward compatibility with existing c3_invalidation_items filter 107 100 108 == 7.1.0 == 101 109 * [Feature] Add invalidation detail view with modal popup showing invalidation paths, caller reference, and status … … 186 194 * Fix small bug 187 195 * Add some feature for AMIMOTO Managed hosting user 196 188 197 189 198 = 4.3.1 =
Note: See TracChangeset
for help on using the changeset viewer.