Plugin Directory

Changeset 3346059


Ignore:
Timestamp:
08/18/2025 12:50:50 AM (4 months ago)
Author:
hideokamoto
Message:

Update to version 7.2.0 from GitHub

Location:
c3-cloudfront-clear-cache
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • c3-cloudfront-clear-cache/tags/7.2.0/c3-cloudfront-clear-cache.php

    r3337531 r3346059  
    22/**
    33 * Plugin Name: C3 Cloudfront Cache Controller
    4  * Version: 7.1.0
     4 * Version: 7.2.0
    55 * Plugin URI:https://github.com/amimoto-ami/c3-cloudfront-clear-cache
    66 * Description: Manage CloudFront Cache and provide some fixtures.
  • c3-cloudfront-clear-cache/tags/7.2.0/classes/AWS/Invalidation_Batch_Service.php

    r3336321 r3346059  
    108108    public function create_batch_by_post( string $home_url, string $distribution_id, ?\WP_Post $post = null ) {
    109109        $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 );
    111112        $invalidation_batch = $this->put_post_invalidation_batch( $invalidation_batch, $post );
    112113        return $invalidation_batch->get_invalidation_request_parameter( $distribution_id );
     
    122123    public function create_batch_by_posts( string $home_url, string $distribution_id, array $posts = array() ) {
    123124        $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 );
    125127        foreach ( $posts as $post ) {
    126128            $invalidation_batch = $this->put_post_invalidation_batch( $invalidation_batch, $post );
     
    137139    public function create_batch_for_all( string $distribution_id ) {
    138140        $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 );
    140143        return $invalidation_batch->get_invalidation_request_parameter( $distribution_id );
    141144    }
  • c3-cloudfront-clear-cache/tags/7.2.0/classes/WP/Hooks.php

    r3309497 r3346059  
    2626     * @param string $name Hook name.
    2727     * @param mixed  $value Hooked value.
     28     * @param mixed  ...$args Additional arguments to pass to the filter.
    2829     */
    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 );
    3132    }
    3233
  • c3-cloudfront-clear-cache/tags/7.2.0/readme.txt

    r3337531 r3346059  
    55Requires at least: 4.9.0
    66Tested up to: 6.8.1
    7 Stable tag: 7.1.0
     7Stable tag: 7.2.0
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    9898== Changelog ==
    9999
     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
    100108== 7.1.0 ==
    101109* [Feature] Add invalidation detail view with modal popup showing invalidation paths, caller reference, and status
     
    186194* Fix small bug
    187195* Add some feature for AMIMOTO Managed hosting user
     196
    188197
    189198= 4.3.1 =
  • c3-cloudfront-clear-cache/trunk/c3-cloudfront-clear-cache.php

    r3337531 r3346059  
    22/**
    33 * Plugin Name: C3 Cloudfront Cache Controller
    4  * Version: 7.1.0
     4 * Version: 7.2.0
    55 * Plugin URI:https://github.com/amimoto-ami/c3-cloudfront-clear-cache
    66 * Description: Manage CloudFront Cache and provide some fixtures.
  • c3-cloudfront-clear-cache/trunk/classes/AWS/Invalidation_Batch_Service.php

    r3336321 r3346059  
    108108    public function create_batch_by_post( string $home_url, string $distribution_id, ?\WP_Post $post = null ) {
    109109        $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 );
    111112        $invalidation_batch = $this->put_post_invalidation_batch( $invalidation_batch, $post );
    112113        return $invalidation_batch->get_invalidation_request_parameter( $distribution_id );
     
    122123    public function create_batch_by_posts( string $home_url, string $distribution_id, array $posts = array() ) {
    123124        $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 );
    125127        foreach ( $posts as $post ) {
    126128            $invalidation_batch = $this->put_post_invalidation_batch( $invalidation_batch, $post );
     
    137139    public function create_batch_for_all( string $distribution_id ) {
    138140        $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 );
    140143        return $invalidation_batch->get_invalidation_request_parameter( $distribution_id );
    141144    }
  • c3-cloudfront-clear-cache/trunk/classes/WP/Hooks.php

    r3309497 r3346059  
    2626     * @param string $name Hook name.
    2727     * @param mixed  $value Hooked value.
     28     * @param mixed  ...$args Additional arguments to pass to the filter.
    2829     */
    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 );
    3132    }
    3233
  • c3-cloudfront-clear-cache/trunk/readme.txt

    r3337531 r3346059  
    55Requires at least: 4.9.0
    66Tested up to: 6.8.1
    7 Stable tag: 7.1.0
     7Stable tag: 7.2.0
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    9898== Changelog ==
    9999
     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
    100108== 7.1.0 ==
    101109* [Feature] Add invalidation detail view with modal popup showing invalidation paths, caller reference, and status
     
    186194* Fix small bug
    187195* Add some feature for AMIMOTO Managed hosting user
     196
    188197
    189198= 4.3.1 =
Note: See TracChangeset for help on using the changeset viewer.