Changeset 2892153
- Timestamp:
- 04/02/2023 12:02:44 PM (3 years ago)
- Location:
- ezcache
- Files:
-
- 96 added
- 3 edited
-
tags/1.6.1 (added)
-
tags/1.6.1/advanced-cache.php (added)
-
tags/1.6.1/assets (added)
-
tags/1.6.1/assets/dist (added)
-
tags/1.6.1/assets/dist/css (added)
-
tags/1.6.1/assets/dist/css/options.css (added)
-
tags/1.6.1/assets/dist/css/options.css.map (added)
-
tags/1.6.1/assets/dist/js (added)
-
tags/1.6.1/assets/dist/js/options.js (added)
-
tags/1.6.1/assets/dist/js/options.js.LICENSE.txt (added)
-
tags/1.6.1/assets/dist/js/options.js.map (added)
-
tags/1.6.1/assets/images (added)
-
tags/1.6.1/changelog.txt (added)
-
tags/1.6.1/ezcache.php (added)
-
tags/1.6.1/includes (added)
-
tags/1.6.1/includes/Admin.php (added)
-
tags/1.6.1/includes/BackgroundProcesses (added)
-
tags/1.6.1/includes/BackgroundProcesses/ConvertWebpProcess.php (added)
-
tags/1.6.1/includes/Cache.php (added)
-
tags/1.6.1/includes/FileOptimizer (added)
-
tags/1.6.1/includes/FileOptimizer/BaseFileOptimizer.php (added)
-
tags/1.6.1/includes/FileOptimizer/CombineGoogleFonts.php (added)
-
tags/1.6.1/includes/FileOptimizer/CssCombiner.php (added)
-
tags/1.6.1/includes/FileOptimizer/CssMinifier.php (added)
-
tags/1.6.1/includes/FileOptimizer/JsCombiner.php (added)
-
tags/1.6.1/includes/FileOptimizer/JsMinifier.php (added)
-
tags/1.6.1/includes/FileOptimizer/WebpConverter.php (added)
-
tags/1.6.1/includes/LicenseApi.php (added)
-
tags/1.6.1/includes/Rest (added)
-
tags/1.6.1/includes/Rest/CacheController.php (added)
-
tags/1.6.1/includes/Rest/LicenseController.php (added)
-
tags/1.6.1/includes/Rest/SettingsController.php (added)
-
tags/1.6.1/includes/Rest/StatusController.php (added)
-
tags/1.6.1/includes/RestApi.php (added)
-
tags/1.6.1/includes/Settings.php (added)
-
tags/1.6.1/includes/ThirdParty (added)
-
tags/1.6.1/includes/ThirdParty/Minify_CSS_UriRewriter.php (added)
-
tags/1.6.1/includes/ThirdParty/Minify_HTML.php (added)
-
tags/1.6.1/includes/Updater.php (added)
-
tags/1.6.1/includes/Utilities (added)
-
tags/1.6.1/includes/Utilities/Encrypter.php (added)
-
tags/1.6.1/includes/Utilities/Logger.php (added)
-
tags/1.6.1/includes/WebpApi.php (added)
-
tags/1.6.1/index.php (added)
-
tags/1.6.1/languages (added)
-
tags/1.6.1/languages/ezcache-he_IL.mo (added)
-
tags/1.6.1/languages/ezcache-he_IL.po (added)
-
tags/1.6.1/languages/ezcache-xx_XX.pot (added)
-
tags/1.6.1/readme.txt (added)
-
tags/1.6.1/uninstall.php (added)
-
tags/1.6.1/vendor (added)
-
tags/1.6.1/vendor/autoload.php (added)
-
tags/1.6.1/vendor/composer (added)
-
tags/1.6.1/vendor/composer/ClassLoader.php (added)
-
tags/1.6.1/vendor/composer/LICENSE (added)
-
tags/1.6.1/vendor/composer/autoload_classmap.php (added)
-
tags/1.6.1/vendor/composer/autoload_namespaces.php (added)
-
tags/1.6.1/vendor/composer/autoload_psr4.php (added)
-
tags/1.6.1/vendor/composer/autoload_real.php (added)
-
tags/1.6.1/vendor/composer/autoload_static.php (added)
-
tags/1.6.1/vendor/composer/installed.json (added)
-
tags/1.6.1/vendor/composer/platform_check.php (added)
-
tags/1.6.1/vendor/matthiasmullie (added)
-
tags/1.6.1/vendor/matthiasmullie/minify (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/CONTRIBUTING.md (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/Dockerfile (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/LICENSE (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/bin (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/bin/minifycss (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/bin/minifyjs (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/composer.json (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/data (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/data/js (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/data/js/keywords_after.txt (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/data/js/keywords_before.txt (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/data/js/keywords_reserved.txt (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/data/js/operators.txt (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/data/js/operators_after.txt (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/data/js/operators_before.txt (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/docker-compose.yml (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/src (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/src/CSS.php (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/src/Exception.php (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/src/Exceptions (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/src/Exceptions/BasicException.php (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/src/Exceptions/FileImportException.php (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/src/Exceptions/IOException.php (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/src/JS.php (added)
-
tags/1.6.1/vendor/matthiasmullie/minify/src/Minify.php (added)
-
tags/1.6.1/vendor/matthiasmullie/path-converter (added)
-
tags/1.6.1/vendor/matthiasmullie/path-converter/LICENSE (added)
-
tags/1.6.1/vendor/matthiasmullie/path-converter/composer.json (added)
-
tags/1.6.1/vendor/matthiasmullie/path-converter/src (added)
-
tags/1.6.1/vendor/matthiasmullie/path-converter/src/Converter.php (added)
-
tags/1.6.1/vendor/matthiasmullie/path-converter/src/ConverterInterface.php (added)
-
tags/1.6.1/vendor/matthiasmullie/path-converter/src/NoConverter.php (added)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/ezcache.php (modified) (7 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ezcache/trunk/changelog.txt
r2812876 r2892153 1 = 1.6.1 = 2 - Fix problem setting up scheduled task for old cache cleanup 3 1 4 = 1.6.0 = 2 5 - Log only when debug is enabled -
ezcache/trunk/ezcache.php
r2828395 r2892153 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.6. 06 Version: 1.6.1 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.6. 0' );38 define( 'EZCACHE_VERSION', '1.6.1' ); 39 39 define( 'EZCACHE_SETTINGS_KEY', 'ezcache' ); 40 40 … … 104 104 add_action( 'init', [ $this, 'load_translation' ] ); 105 105 add_filter( 'cron_schedules', [ $this, 'add_cron_schedules' ] ); 106 add_action( ' plugin_loaded', [ $this, 'maybe_repair_installation' ] );106 add_action( 'init', [ $this, 'maybe_repair_installation' ] ); 107 107 108 108 new RestApi( $this ); … … 126 126 127 127 function activation_hook() { 128 set_transient( 'ezcache_activating', true ); 129 128 130 // copy advanced-cache 129 131 copy( EZCACHE_DIR . '/advanced-cache.php', WP_CONTENT_DIR . '/advanced-cache.php' ); 130 132 131 Settings::maybe_update_cronjobs( Settings::get_settings() ); 133 if ( ! wp_next_scheduled( 'ezcache_clear_expired_cache' ) ) { 134 Settings::maybe_update_cronjobs( Settings::get_settings() ); 135 } 132 136 Updater::upgrade(); 133 137 … … 135 139 136 140 $this->ezcache->preload_homepage(); 141 142 delete_transient( 'ezcache_activating' ); 137 143 } 138 144 139 145 function deactivation_hook() { 146 set_transient( 'ezcache_deactivating', true ); 147 140 148 // delete advanced-cache 141 149 if ( file_exists( WP_CONTENT_DIR . '/advanced-cache.php' ) ) { … … 152 160 153 161 $this->ezcache->clear_cache(); 162 163 delete_transient( 'ezcache_deactivating' ); 154 164 } 155 165 … … 263 273 */ 264 274 function maybe_repair_installation() { 265 if ( isset( $_SESSION['EZCACHE_REPAIRED'] ) || get_transient( 'ezcache_deactivating' ) || get_transient( 'ezcache_activating' ) ) { 266 return; 267 } 268 269 $status = $this->plugin->ezcache->get_status(); 275 $repaired = get_transient( 'ezcache_repaired' ); 276 delete_transient( 'ezcache_repaired' ); 277 278 if ( $repaired || get_transient( 'ezcache_deactivating' ) || get_transient( 'ezcache_activating' ) ) { 279 return; 280 } 281 282 if ( ! wp_next_scheduled( 'ezcache_clear_expired_cache' ) ) { 283 Settings::maybe_update_cronjobs( Settings::get_settings() ); 284 } 285 286 $status = $this->ezcache->get_status(); 270 287 if ( $status['cache_enabled'] && $status['adv_cache_exists'] && $status['adv_cache_exists'] && $status['correct_cache_exists'] && $status['webp_table_exists'] ) { 271 288 return; 272 289 } 273 290 274 $this-> plugin->activation_hook();275 276 $_SESSION['EZCACHE_REPAIRED'] = true;291 $this->activation_hook(); 292 293 set_transient( 'ezcache_repaired', true ); 277 294 } 278 295 } -
ezcache/trunk/readme.txt
r2812876 r2892153 4 4 Requires PHP: 5.6 5 5 Requires at least: 4.6 6 Tested up to: 6. 16 Tested up to: 6.2 7 7 Stable tag: trunk 8 8 License: GPLv2 or later … … 35 35 36 36 == Changelog == 37 = 1.6.1 = 38 - Fix problem setting up scheduled task for old cache cleanup 39 37 40 = 1.6.0 = 38 41 - Log only when debug is enabled
Note: See TracChangeset
for help on using the changeset viewer.