WordPress.org

Plugin Directory

Changeset 1809769


Ignore:
Timestamp:
01/26/18 04:28:04 (4 weeks ago)
Author:
hideokamoto
Message:

v5.1.0

Location:
c3-cloudfront-clear-cache/trunk
Files:
1 added
4 edited

Legend:

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

    r1808342 r1809769  
    22/* 
    33 * Plugin Name: C3 Cloudfront Cache Controller 
    4  * Version: 5.0.0 
     4 * Version: 5.1.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/module/includes.php

    r1808342 r1809769  
    2121require_once( 'model/class.logs.php' ); 
    2222require_once( 'model/fixtures/wp_is_mobile.php' ); 
     23require_once( 'model/fixtures/avoid_preview_cache.php' ); 
    2324 
    2425// View 
  • c3-cloudfront-clear-cache/trunk/module/model/cf-preview-fix.php

    r1494376 r1809769  
    1111}); 
    1212 
     13/** 
     14 * Fixture for post preview 
     15 * 
     16 * @class C3_Auth 
     17 * @since 4.0.0 
     18 */ 
    1319class CF_preview_fix{ 
    1420    private static $instance; 
     
    6874    public function sanitizeFileName( $filename ) { 
    6975        $info = pathinfo( $filename ); 
    70         $ext  = empty( $info['extension'] ) ? '' : '.' . $info['extension']; 
     76        $ext    = empty( $info['extension'] ) ? '' : '.' . $info['extension']; 
    7177        $name = basename( $filename, $ext ); 
    7278        $finalFileName = $name. '-'. current_time( 'YmdHis' ); 
  • c3-cloudfront-clear-cache/trunk/readme.txt

    r1808342 r1809769  
    55Requires at least: 4.9.0 
    66Tested up to: 4.9.2 
    7 Stable tag: 5.0.0 
     7Stable tag: 5.1.0 
    88License: GPLv3 or later 
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html 
     
    2323 
    2424* preview url 
    25 In preview page, plugin add `post_date` query to avoid CloudFront Cache. 
     25In preview page, plugin add `post_date` query to avoid CloudFront cache. 
     26And set `wordpress_loginuser_last_visit` cookie for avoid CloudFront cache too. 
    2627 
     28The `wordpress_loginuser_last_visit` cookie will be removed if user sign out. 
    2729 
    2830= Invalidation(Clear Cache) Page URL = 
     
    4446 
    4547== Changelog == 
     48 
     49= 5.1.0 = 
     50* [Update preview fixture] Set cookie to avoid CloudFront cache if user sign in 
     51* [Update preview fixture] Unset cookie for avoide CloudFront cache if user sign out 
    4652 
    4753= 5.0.0 = 
     
    138144== Upgrade Notice == 
    139145 
    140 = 5.0.0 = 
    141 * Support CloudFront viewer params on `wp_is_mobile()`.(4.9.0 or later) 
     146= 5.1.0 = 
     147* [Update preview fixture] Set cookie to avoid CloudFront cache if user sign in 
     148* [Update preview fixture] Unset cookie for avoide CloudFront cache if user sign out 
Note: See TracChangeset for help on using the changeset viewer.