Skip to content

Commit

Permalink
Merge branch 'master' of github.com:amimoto-ami/c3-cloudfront-clear-c…
Browse files Browse the repository at this point in the history
…ache into release
  • Loading branch information
hideokamoto committed Sep 25, 2018
2 parents d06c25e + 2301ff9 commit 35feff7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion c3-cloudfront-clear-cache.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
* Plugin Name: C3 Cloudfront Cache Controller
* Version: 5.4.0
* Version: 5.4.1
* Plugin URI:https://github.com/amimoto-ami/c3-cloudfront-clear-cache
* Description: Manage CloudFront Cache and provide some fixtures.
* Author: hideokamoto
Expand Down
2 changes: 1 addition & 1 deletion module/model/invalidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static function get_instance() {
* @access private
**/
private function _register_cron_event( $query ) {
if ( $query['Paths']['Items'][0] === '/*') {
if (isset( $query['Paths'] ) && isset( $query['Paths']['Items'] ) && $query['Paths']['Items'][0] === '/*') {
return;
}
if (apply_filters( 'c3_disabled_cron_retry', false)) {
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
=== C3 Cloudfront Cache Controller ===
Contributors: amimotoami,hideokamoto,megumithemes,wokamoto,miyauchi,hnle
Contributors: amimotoami,hideokamoto,megumithemes,wokamoto,miyauchi,hnle,bartoszgadomski
Donate link: http://wp-kyoto.net/
Tags: AWS,CDN,CloudFront
Requires at least: 4.9.0
Tested up to: 4.9.7
Stable tag: 5.4.0
Stable tag: 5.4.1
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -94,6 +94,9 @@ add_filter( 'c3_select_aws_sdk', function() {

== Changelog ==

= 5.4.1 =
* [Bug fix] Undefined Paths index in invalidation query cron event

= 5.4.0 =
* [Update] Update preview fix plugin

Expand Down

0 comments on commit 35feff7

Please sign in to comment.