Changeset 1603672
- Timestamp:
- 02/26/2017 12:59:55 AM (9 years ago)
- Location:
- full-site-cache-cf/tags/0.0.2
- Files:
-
- 2 deleted
- 2 edited
- 1 copied
-
. (copied) (copied from full-site-cache-cf/trunk)
-
full-site-cache-cf.php (modified) (5 diffs)
-
full-site-cache-cf.pot (deleted)
-
readme.txt (modified) (3 diffs)
-
translate (deleted)
Legend:
- Unmodified
- Added
- Removed
-
full-site-cache-cf/tags/0.0.2/full-site-cache-cf.php
r1586189 r1603672 2 2 /** 3 3 * @package Full Site Cache for CloudFront 4 * @version 0.0. 14 * @version 0.0.2 5 5 */ 6 6 /* … … 8 8 Description: This plugin allows can auto invalidate the cache automatically if you are using full site CDN. 9 9 Author: ZE3kr 10 Version: 0.0. 110 Version: 0.0.2 11 11 Author URI: https://ze3kr.com/ 12 12 Text Domain: full-site-cache-cf … … 106 106 tlo_cf_purge_post_id_cron( $comment['comment_post_ID'] ); 107 107 } 108 109 return $approved; 108 110 } 109 111 … … 121 123 // post type actions 122 124 foreach ( $post_types as $post_type ) { 123 add_action( 'publish_' .$post_type, 'tlo_cf_purge_ blog_cron');124 add_action( 'publish_future_' .$post_type, 'tlo_cf_purge_ blog_cron');125 add_action( 'publish_' .$post_type, 'tlo_cf_purge_post_id_cron'); 126 add_action( 'publish_future_' .$post_type, 'tlo_cf_purge_post_id_cron'); 125 127 } 126 128 } 129 130 function on_all_status_transitions( $new_status, $old_status, $post ) { 131 if ( ($new_status == 'publish' && $old_status != 'publish') || ($new_status == 'new') || ($old_status == 'publish' && $new_status != 'publish') ) { 132 tlo_cf_purge_blog_cron(); 133 } 134 } 135 add_action( 'transition_post_status', 'on_all_status_transitions', 10, 3 ); 127 136 128 137 add_action( 'transition_comment_status', 'tlo_cf_purge_comment_status', 91, 3 ); … … 159 168 $secret_key = AWS_SECRET_ACCESS_KEY; 160 169 161 echo $xml;162 170 $len = strlen($xml); 163 171 $date = gmdate('D, d M Y G:i:s T'); -
full-site-cache-cf/tags/0.0.2/readme.txt
r1586193 r1603672 5 5 Requires at least: 4.4 6 6 Tested up to: 4.7.2 7 Stable tag: 0.0. 17 Stable tag: 0.0.2 8 8 License: GNU GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 17 17 = Invalidation behaviors = 18 18 19 + Invalidate the whole cache when a post updated 19 + Invalidate the whole cache when a new post published 20 + Invalidate a post page when a post updated 20 21 + Invalidate a post page if have any comment has changed on that page 21 22 + Each invalidation has a minimum interval of 10 minutes … … 48 49 == Changelog == 49 50 51 = 0.0.2 = 52 53 + Fixed for comment approval. 54 + Changed the invalidate behavior. 55 50 56 = 0.0.1 = 51 57
Note: See TracChangeset
for help on using the changeset viewer.