Changeset 2186116
- Timestamp:
- 11/05/2019 12:19:18 PM (6 years ago)
- Location:
- ezcache
- Files:
-
- 128 added
- 6 edited
-
tags/1.3.4 (added)
-
tags/1.3.4/advanced-cache.php (added)
-
tags/1.3.4/assets (added)
-
tags/1.3.4/assets/dist (added)
-
tags/1.3.4/assets/dist/css (added)
-
tags/1.3.4/assets/dist/css/options.css (added)
-
tags/1.3.4/assets/dist/js (added)
-
tags/1.3.4/assets/dist/js/options.js (added)
-
tags/1.3.4/assets/dist/js/options.js.map (added)
-
tags/1.3.4/assets/images (added)
-
tags/1.3.4/assets/mix-manifest.json (added)
-
tags/1.3.4/assets/src (added)
-
tags/1.3.4/assets/src/js (added)
-
tags/1.3.4/assets/src/js/Components (added)
-
tags/1.3.4/assets/src/js/Components/AjaxButton.vue (added)
-
tags/1.3.4/assets/src/js/Components/LicenseDetails.vue (added)
-
tags/1.3.4/assets/src/js/Components/Loader.vue (added)
-
tags/1.3.4/assets/src/js/Components/Modal.vue (added)
-
tags/1.3.4/assets/src/js/Components/Progressbar.vue (added)
-
tags/1.3.4/assets/src/js/Components/RadioToggle.vue (added)
-
tags/1.3.4/assets/src/js/Components/Switch.vue (added)
-
tags/1.3.4/assets/src/js/Components/TogglePanel.vue (added)
-
tags/1.3.4/assets/src/js/Components/UpressAdvert.vue (added)
-
tags/1.3.4/assets/src/js/Pages (added)
-
tags/1.3.4/assets/src/js/Pages/AdvancedSettings.vue (added)
-
tags/1.3.4/assets/src/js/Pages/License.vue (added)
-
tags/1.3.4/assets/src/js/Pages/OptionsScreen.vue (added)
-
tags/1.3.4/assets/src/js/Pages/Settings.vue (added)
-
tags/1.3.4/assets/src/js/Pages/Stats.vue (added)
-
tags/1.3.4/assets/src/js/options.js (added)
-
tags/1.3.4/assets/src/scss (added)
-
tags/1.3.4/assets/src/scss/_animations.scss (added)
-
tags/1.3.4/assets/src/scss/_forms.scss (added)
-
tags/1.3.4/assets/src/scss/_grid.scss (added)
-
tags/1.3.4/assets/src/scss/_utilities.scss (added)
-
tags/1.3.4/assets/src/scss/options.scss (added)
-
tags/1.3.4/changelog.txt (added)
-
tags/1.3.4/ezcache.php (added)
-
tags/1.3.4/includes (added)
-
tags/1.3.4/includes/Admin.php (added)
-
tags/1.3.4/includes/BackgroundProcesses (added)
-
tags/1.3.4/includes/BackgroundProcesses/ConvertWebpProcess.php (added)
-
tags/1.3.4/includes/Cache.php (added)
-
tags/1.3.4/includes/FileOptimizer (added)
-
tags/1.3.4/includes/FileOptimizer/BaseFileOptimizer.php (added)
-
tags/1.3.4/includes/FileOptimizer/CombineGoogleFonts.php (added)
-
tags/1.3.4/includes/FileOptimizer/CssCombiner.php (added)
-
tags/1.3.4/includes/FileOptimizer/CssMinifier.php (added)
-
tags/1.3.4/includes/FileOptimizer/JsCombiner.php (added)
-
tags/1.3.4/includes/FileOptimizer/JsMinifier.php (added)
-
tags/1.3.4/includes/FileOptimizer/WebpConverter.php (added)
-
tags/1.3.4/includes/LicenseApi.php (added)
-
tags/1.3.4/includes/Rest (added)
-
tags/1.3.4/includes/Rest/CacheController.php (added)
-
tags/1.3.4/includes/Rest/LicenseController.php (added)
-
tags/1.3.4/includes/Rest/SettingsController.php (added)
-
tags/1.3.4/includes/Rest/StatusController.php (added)
-
tags/1.3.4/includes/RestApi.php (added)
-
tags/1.3.4/includes/Settings.php (added)
-
tags/1.3.4/includes/ThirdParty (added)
-
tags/1.3.4/includes/ThirdParty/Minify_CSS_UriRewriter.php (added)
-
tags/1.3.4/includes/ThirdParty/Minify_HTML.php (added)
-
tags/1.3.4/includes/Updater.php (added)
-
tags/1.3.4/includes/Utilities (added)
-
tags/1.3.4/includes/Utilities/Encrypter.php (added)
-
tags/1.3.4/includes/WebpApi.php (added)
-
tags/1.3.4/index.php (added)
-
tags/1.3.4/languages (added)
-
tags/1.3.4/languages/ezcache-he_IL.mo (added)
-
tags/1.3.4/languages/ezcache-he_IL.po (added)
-
tags/1.3.4/languages/ezcache-xx_XX.pot (added)
-
tags/1.3.4/readme.txt (added)
-
tags/1.3.4/uninstall.php (added)
-
tags/1.3.4/vendor (added)
-
tags/1.3.4/vendor/a5hleyrich (added)
-
tags/1.3.4/vendor/a5hleyrich/wp-background-processing (added)
-
tags/1.3.4/vendor/a5hleyrich/wp-background-processing/.gitignore (added)
-
tags/1.3.4/vendor/a5hleyrich/wp-background-processing/README.md (added)
-
tags/1.3.4/vendor/a5hleyrich/wp-background-processing/classes (added)
-
tags/1.3.4/vendor/a5hleyrich/wp-background-processing/classes/wp-async-request.php (added)
-
tags/1.3.4/vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php (added)
-
tags/1.3.4/vendor/a5hleyrich/wp-background-processing/composer.json (added)
-
tags/1.3.4/vendor/a5hleyrich/wp-background-processing/license.txt (added)
-
tags/1.3.4/vendor/a5hleyrich/wp-background-processing/wp-background-processing.php (added)
-
tags/1.3.4/vendor/autoload.php (added)
-
tags/1.3.4/vendor/composer (added)
-
tags/1.3.4/vendor/composer/ClassLoader.php (added)
-
tags/1.3.4/vendor/composer/LICENSE (added)
-
tags/1.3.4/vendor/composer/autoload_classmap.php (added)
-
tags/1.3.4/vendor/composer/autoload_namespaces.php (added)
-
tags/1.3.4/vendor/composer/autoload_psr4.php (added)
-
tags/1.3.4/vendor/composer/autoload_real.php (added)
-
tags/1.3.4/vendor/composer/autoload_static.php (added)
-
tags/1.3.4/vendor/composer/installed.json (added)
-
tags/1.3.4/vendor/matthiasmullie (added)
-
tags/1.3.4/vendor/matthiasmullie/minify (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/CONTRIBUTING.md (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/Dockerfile (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/LICENSE (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/bin (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/bin/minifycss (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/bin/minifyjs (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/composer.json (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/data (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/data/js (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/data/js/keywords_after.txt (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/data/js/keywords_before.txt (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/data/js/keywords_reserved.txt (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/data/js/operators.txt (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/data/js/operators_after.txt (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/data/js/operators_before.txt (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/docker-compose.yml (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/src (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/src/CSS.php (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/src/Exception.php (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/src/Exceptions (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/src/Exceptions/BasicException.php (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/src/Exceptions/FileImportException.php (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/src/Exceptions/IOException.php (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/src/JS.php (added)
-
tags/1.3.4/vendor/matthiasmullie/minify/src/Minify.php (added)
-
tags/1.3.4/vendor/matthiasmullie/path-converter (added)
-
tags/1.3.4/vendor/matthiasmullie/path-converter/LICENSE (added)
-
tags/1.3.4/vendor/matthiasmullie/path-converter/composer.json (added)
-
tags/1.3.4/vendor/matthiasmullie/path-converter/src (added)
-
tags/1.3.4/vendor/matthiasmullie/path-converter/src/Converter.php (added)
-
tags/1.3.4/vendor/matthiasmullie/path-converter/src/ConverterInterface.php (added)
-
tags/1.3.4/vendor/matthiasmullie/path-converter/src/NoConverter.php (added)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/ezcache.php (modified) (2 diffs)
-
trunk/includes/BackgroundProcesses/ConvertWebpProcess.php (modified) (2 diffs)
-
trunk/includes/Cache.php (modified) (5 diffs)
-
trunk/includes/FileOptimizer/WebpConverter.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ezcache/trunk/changelog.txt
r2179182 r2186116 1 = 1.3.4 = 2 - FIX: Store only gzipped cache data to save on disk space 3 - FIX: External images processed as internal 4 5 = 1.3.3 = 6 - FIX: Error preventing media file deletion 7 1 8 = 1.3.2 = 2 - FIX: error preventing saving in plugin/theme editor9 - FIX: Error preventing saving in plugin/theme editor 3 10 4 11 = 1.3.1 = -
ezcache/trunk/ezcache.php
r2179182 r2186116 4 4 Description: EzCache is an easy and innovative cache plugin that will help you significantly improve your site speed. 5 5 Plugin URI: https://ezcache.app 6 Version: 1.3. 26 Version: 1.3.4 7 7 Author: uPress 8 8 Author URI: https://www.upress.io … … 36 36 define( 'EZCACHE_URL', plugin_dir_url( __FILE__ ) ); 37 37 define( 'EZCACHE_BASEBANE', basename( __FILE__ ) ); 38 define( 'EZCACHE_VERSION', '1.3. 2' );38 define( 'EZCACHE_VERSION', '1.3.4' ); 39 39 define( 'EZCACHE_SETTINGS_KEY', 'ezcache' ); 40 40 } -
ezcache/trunk/includes/BackgroundProcesses/ConvertWebpProcess.php
r2179182 r2186116 106 106 107 107 foreach ( $data as $cache_file => $images ) { 108 $contents = file_get_contents( $cache_file);108 $contents = gzdecode( file_get_contents( $cache_file ) ); 109 109 110 110 foreach ( $images as $image_data ) { … … 112 112 } 113 113 114 @file_put_contents( $cache_file, $contents ); 115 @file_put_contents( $cache_file . '.gz', gzencode( $contents, 6, FORCE_GZIP ) ); 114 @file_put_contents( $cache_file, gzencode( $contents, 6, FORCE_GZIP ) ); 116 115 } 117 116 -
ezcache/trunk/includes/Cache.php
r2179182 r2186116 648 648 $gzip_accepted = $this->gzip_accepted(); 649 649 650 $serve_gzip = $gzip_accepted && file_exists( $cache_file . '.gz' ); 651 $cache_file = $serve_gzip ? ($cache_file . '.gz') : $cache_file; 650 $cache_file = $cache_file . '.gz'; 652 651 $filesize = file_exists( $cache_file ) ? @filesize( $cache_file ) : false; 653 652 … … 659 658 header( "X-Cached-With: ezCache" ); 660 659 header( "Vary: Accept-Encoding, Cookie" ); 661 // header( "Content-Length: {$filesize}" );662 660 header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s', filemtime( $cache_file ) ) . ' GMT' ); 663 661 … … 678 676 679 677 // Serve the cache if file isn't store in the client browser cache. 680 if ( $serve_gzip ) { 678 // if the browser does not support gzip read the file and output it without gzip encoding 679 if ( ! $gzip_accepted ) { 681 680 readgzfile( $cache_file ); 682 681 exit; 683 682 } 684 683 684 // otherwise output the gzipped file as-is 685 header( "Content-Length: {$filesize}" ); 686 header( "Content-Encoding: gzip" ); 685 687 readfile( $cache_file ); 686 688 exit; … … 735 737 736 738 $real_cache_dir = $this->get_real_cache_dir(); 737 $cache_file = $this->get_cache_file_path() ;739 $cache_file = $this->get_cache_file_path() . '.gz'; 738 740 $asset_cache_dir = $this->get_default_cache_path() . 'min/'; 739 741 $asset_cache_url = trailingslashit( trailingslashit( get_home_url() ) . trim( str_replace( dirname( WP_CONTENT_DIR ), '', $asset_cache_dir ), '/' ) ); … … 813 815 } 814 816 815 // write regularfile816 if ( ! @file_put_contents( $cache_file, $buffer) ) {817 // write gzipped file 818 if ( ! @file_put_contents( $cache_file, gzencode( $buffer, 6, FORCE_GZIP ) ) ) { 817 819 error_log( 'ezCache could not write to ' . str_replace( ABSPATH, '', $cache_file ) ); 818 }819 820 // write gzipped file821 if ( ! @file_put_contents( $cache_file . '.gz', gzencode( $buffer, 6, FORCE_GZIP ) ) ) {822 error_log( 'ezCache could not write to ' . str_replace( ABSPATH, '', $cache_file . '.gz' ) );823 820 } 824 821 -
ezcache/trunk/includes/FileOptimizer/WebpConverter.php
r2179182 r2186116 47 47 foreach ( $images as $image ) { 48 48 $image_url = $image[2]; 49 $image_path = $this->get_file_path( $image[2] );50 49 51 50 // we don't process external files or files that don't exist 52 if( ! file_exists( $image_path ) || $this->is_external_file( $image_url ) ) { 51 52 if($this->is_external_file( $image_url )) { 53 continue; 54 } 55 56 $image_path = $this->get_file_path( $image[2] ); 57 if( ! file_exists( $image_path ) ) { 53 58 continue; 54 59 } -
ezcache/trunk/readme.txt
r2179182 r2186116 36 36 == Changelog == 37 37 38 = 1.3.4 = 39 - FIX: Store only gzipped cache data to save on disk space 40 - FIX: External images processed as internal 41 42 = 1.3.3 = 43 - FIX: Error preventing media file deletion 44 38 45 = 1.3.2 = 39 - FIX: error preventing saving in plugin/theme editor46 - FIX: Error preventing saving in plugin/theme editor 40 47 41 48 = 1.3.1 = … … 48 55 - ADD: Disable Emoji 49 56 - ADD: Auto detection for Woocommerce cart and checkout pages 50 51 = 1.2.4 =52 - FIX: Error when installing with another caching plugin53 - FIX: Better WordPress compatibility54 - FIX: Rest API support for older server software not supporting HTTP methods other than GET/POST
Note: See TracChangeset
for help on using the changeset viewer.