Plugin Directory

Changeset 2206517


Ignore:
Timestamp:
12/05/2019 11:40:47 AM (6 years ago)
Author:
upress
Message:

v1.3.7

Location:
ezcache
Files:
130 added
8 edited

Legend:

Unmodified
Added
Removed
  • ezcache/trunk/changelog.txt

    r2191751 r2206517  
     1= 1.3.7 =
     2- FIX: CLI requests getting cached
     3- FIX: Fail to minify protocol relative URLs
     4
    15= 1.3.6 =
    26- FIX: Error saving settings with Simple permalinks setting
  • ezcache/trunk/ezcache.php

    r2191751 r2206517  
    44    Description: EzCache is an easy and innovative cache plugin that will help you significantly improve your site speed.
    55    Plugin URI: https://ezcache.app
    6     Version: 1.3.6
     6    Version: 1.3.7
    77    Author: uPress
    88    Author URI: https://www.upress.io
  • ezcache/trunk/includes/Cache.php

    r2191751 r2206517  
    155155     */
    156156    public function should_serve_cached_data() {
     157        if ( defined( 'WP_CLI' ) && WP_CLI ) {
     158            return false;
     159        }
    157160        if ( defined( 'DOING_CRON' ) && DOING_CRON ) {
    158161            return false;
     
    177180        }
    178181
    179         if ( ( isset( $_SERVER['REQUEST_METHOD'] ) && in_array( $_SERVER['REQUEST_METHOD'], [
     182        if ( !isset( $_SERVER['REQUEST_METHOD'] ) || ( isset( $_SERVER['REQUEST_METHOD'] ) && in_array( $_SERVER['REQUEST_METHOD'], [
    180183                    'POST',
    181184                    'PUT',
     
    11081111     */
    11091112    public static function url_to_path( $url ) {
     1113        if ( preg_match( '/^\/\//i',$url ) ) {
     1114            $url = 'http' . (is_ssl() ? 's' : '') . ':' . $url;
     1115        }
     1116
    11101117        $root_dir = trailingslashit( dirname( WP_CONTENT_DIR ) );
    11111118        $root_url = str_replace( wp_basename( WP_CONTENT_DIR ), '', WP_CONTENT_URL );
  • ezcache/trunk/includes/FileOptimizer/CssCombiner.php

    r2149447 r2206517  
    3434        $files  = [];
    3535        $styles = array_map( function( $style ) use ( &$files ) {
     36            if ( preg_match( '/^\/\//i',$style[2] ) ) {
     37                $style[2] = 'http' . (is_ssl() ? 's' : '') . ':' . $style[2];
     38            }
     39
    3640            if ( $this->is_external_file( $style[2] ) ) {
    3741                return '';
  • ezcache/trunk/includes/FileOptimizer/CssMinifier.php

    r2149447 r2206517  
    3434            if ( preg_match( '/(?:-|\.)min.css/iU', $style[2] ) ) {
    3535                continue;
     36            }
     37
     38            if ( preg_match( '/^\/\//i',$style[2] ) ) {
     39                $style[2] = 'http' . (is_ssl() ? 's' : '') . ':' . $style[2];
    3640            }
    3741
  • ezcache/trunk/includes/FileOptimizer/JsCombiner.php

    r2149447 r2206517  
    107107
    108108            if ( isset( $matches[2] ) ) {
     109                if ( preg_match( '/^\/\//i',$script[2] ) ) {
     110                    $script[2] = 'http' . (is_ssl() ? 's' : '') . ':' . $script[2];
     111                }
     112
    109113                if ( $this->is_external_file( $matches[2] ) ) {
    110114                    foreach ( $this->get_excluded_external_file_path() as $excluded_file ) {
  • ezcache/trunk/includes/FileOptimizer/JsMinifier.php

    r2149447 r2206517  
    3636            if ( preg_match( '/[-.]min\.js/iU', $script[2] ) ) {
    3737                continue;
     38            }
     39
     40            if ( preg_match( '/^\/\//i',$script[2] ) ) {
     41                $script[2] = 'http' . (is_ssl() ? 's' : '') . ':' . $script[2];
    3842            }
    3943
  • ezcache/trunk/readme.txt

    r2191751 r2206517  
    44Requires PHP: 5.6
    55Requires at least: 4.6
    6 Tested up to: 5.2
     6Tested up to: 5.3
    77Stable tag: trunk
    88License: GPLv2 or later
     
    3535
    3636== Changelog ==
     37= 1.3.7 =
     38- FIX: CLI requests getting cached
     39- FIX: Fail to minify protocol relative URLs
    3740
    3841= 1.3.6 =
Note: See TracChangeset for help on using the changeset viewer.