Changeset 3252100
- Timestamp:
- 03/07/2025 10:42:31 AM (13 months ago)
- Location:
- mega-cache
- Files:
-
- 3 edited
- 95 copied
-
tags/1.0.51 (copied) (copied from mega-cache/trunk)
-
tags/1.0.51/assets/css/atec-check.css (copied) (copied from mega-cache/trunk/assets/css/atec-check.css)
-
tags/1.0.51/assets/css/atec-check.min.css (copied) (copied from mega-cache/trunk/assets/css/atec-check.min.css)
-
tags/1.0.51/assets/css/atec-style.css (copied) (copied from mega-cache/trunk/assets/css/atec-style.css)
-
tags/1.0.51/assets/css/atec-style.min.css (copied) (copied from mega-cache/trunk/assets/css/atec-style.min.css)
-
tags/1.0.51/assets/img/RT1.png (copied) (copied from mega-cache/trunk/assets/img/RT1.png)
-
tags/1.0.51/assets/img/RT2.png (copied) (copied from mega-cache/trunk/assets/img/RT2.png)
-
tags/1.0.51/assets/img/atec-group/atec_license_icon.svg (copied) (copied from mega-cache/trunk/assets/img/atec-group/atec_license_icon.svg)
-
tags/1.0.51/assets/img/atec-group/atec_wpa_icon.svg (copied) (copied from mega-cache/trunk/assets/img/atec-group/atec_wpa_icon.svg)
-
tags/1.0.51/assets/img/atec-group/atec_wpau_icon.svg (copied) (copied from mega-cache/trunk/assets/img/atec-group/atec_wpau_icon.svg)
-
tags/1.0.51/assets/img/atec-group/atec_wpcm_icon.svg (copied) (copied from mega-cache/trunk/assets/img/atec-group/atec_wpcm_icon.svg)
-
tags/1.0.51/assets/img/atec-group/atec_wpcr_icon.svg (copied) (copied from mega-cache/trunk/assets/img/atec-group/atec_wpcr_icon.svg)
-
tags/1.0.51/assets/img/atec-group/atec_wpdp_icon.svg (copied) (copied from mega-cache/trunk/assets/img/atec-group/atec_wpdp_icon.svg)
-
tags/1.0.51/assets/img/atec-group/atec_wpdv_icon.svg (copied) (copied from mega-cache/trunk/assets/img/atec-group/atec_wpdv_icon.svg)
-
tags/1.0.51/assets/img/atec-group/atec_wpht_icon.svg (copied) (copied from mega-cache/trunk/assets/img/atec-group/atec_wpht_icon.svg)
-
tags/1.0.51/assets/img/atec-group/atec_wplu_icon.svg (copied) (copied from mega-cache/trunk/assets/img/atec-group/atec_wplu_icon.svg)
-
tags/1.0.51/assets/img/atec-group/atec_wpm_icon.svg (copied) (copied from mega-cache/trunk/assets/img/atec-group/atec_wpm_icon.svg)
-
tags/1.0.51/assets/img/atec-group/atec_wpmc_icon.svg (copied) (copied from mega-cache/trunk/assets/img/atec-group/atec_wpmc_icon.svg)
-
tags/1.0.51/assets/img/atec-group/atec_wpmi_icon.svg (copied) (copied from mega-cache/trunk/assets/img/atec-group/atec_wpmi_icon.svg)
-
tags/1.0.51/assets/img/atec-group/atec_wpmtm_icon.svg (copied) (copied from mega-cache/trunk/assets/img/atec-group/atec_wpmtm_icon.svg)
-
tags/1.0.51/assets/img/atec-group/atec_wppv_icon.svg (copied) (copied from mega-cache/trunk/assets/img/atec-group/atec_wppv_icon.svg)
-
tags/1.0.51/assets/img/atec-group/atec_wps_icon.svg (copied) (copied from mega-cache/trunk/assets/img/atec-group/atec_wps_icon.svg)
-
tags/1.0.51/assets/img/atec-group/atec_wpsa_icon.svg (copied) (copied from mega-cache/trunk/assets/img/atec-group/atec_wpsa_icon.svg)
-
tags/1.0.51/assets/img/atec-group/atec_wpsmc_icon.svg (copied) (copied from mega-cache/trunk/assets/img/atec-group/atec_wpsmc_icon.svg)
-
tags/1.0.51/assets/img/atec-group/atec_wpsv_icon.svg (copied) (copied from mega-cache/trunk/assets/img/atec-group/atec_wpsv_icon.svg)
-
tags/1.0.51/assets/img/atec-group/atec_wpt_icon.svg (copied) (copied from mega-cache/trunk/assets/img/atec-group/atec_wpt_icon.svg)
-
tags/1.0.51/assets/img/atec-group/atec_wpta_icon.svg (copied) (copied from mega-cache/trunk/assets/img/atec-group/atec_wpta_icon.svg)
-
tags/1.0.51/assets/img/icons/disk.svg (copied) (copied from mega-cache/trunk/assets/img/icons/disk.svg)
-
tags/1.0.51/assets/img/icons/gear.svg (copied) (copied from mega-cache/trunk/assets/img/icons/gear.svg)
-
tags/1.0.51/assets/img/icons/primer.svg (copied) (copied from mega-cache/trunk/assets/img/icons/primer.svg)
-
tags/1.0.51/assets/img/icons/stopwatch.svg (copied) (copied from mega-cache/trunk/assets/img/icons/stopwatch.svg)
-
tags/1.0.51/assets/img/logos/apcu.svg (copied) (copied from mega-cache/trunk/assets/img/logos/apcu.svg)
-
tags/1.0.51/assets/img/logos/linux.svg (copied) (copied from mega-cache/trunk/assets/img/logos/linux.svg)
-
tags/1.0.51/assets/img/logos/memcached.svg (copied) (copied from mega-cache/trunk/assets/img/logos/memcached.svg)
-
tags/1.0.51/assets/img/logos/mongodb.svg (copied) (copied from mega-cache/trunk/assets/img/logos/mongodb.svg)
-
tags/1.0.51/assets/img/logos/mysql.svg (copied) (copied from mega-cache/trunk/assets/img/logos/mysql.svg)
-
tags/1.0.51/assets/img/logos/redis.svg (copied) (copied from mega-cache/trunk/assets/img/logos/redis.svg)
-
tags/1.0.51/assets/img/logos/sqlite.svg (copied) (copied from mega-cache/trunk/assets/img/logos/sqlite.svg)
-
tags/1.0.51/assets/img/logos/woocommerce.svg (copied) (copied from mega-cache/trunk/assets/img/logos/woocommerce.svg)
-
tags/1.0.51/assets/js/atec-check.js (copied) (copied from mega-cache/trunk/assets/js/atec-check.js)
-
tags/1.0.51/assets/js/atec-check.min.js (copied) (copied from mega-cache/trunk/assets/js/atec-check.min.js)
-
tags/1.0.51/fixit.php (copied) (copied from mega-cache/trunk/fixit.php)
-
tags/1.0.51/includes/atec-admin.php (copied) (copied from mega-cache/trunk/includes/atec-admin.php)
-
tags/1.0.51/includes/atec-check.php (copied) (copied from mega-cache/trunk/includes/atec-check.php)
-
tags/1.0.51/includes/atec-fixit.php (copied) (copied from mega-cache/trunk/includes/atec-fixit.php)
-
tags/1.0.51/includes/atec-footer.php (copied) (copied from mega-cache/trunk/includes/atec-footer.php)
-
tags/1.0.51/includes/atec-fs.php (copied) (copied from mega-cache/trunk/includes/atec-fs.php)
-
tags/1.0.51/includes/atec-group-array.php (copied) (copied from mega-cache/trunk/includes/atec-group-array.php)
-
tags/1.0.51/includes/atec-group.php (copied) (copied from mega-cache/trunk/includes/atec-group.php)
-
tags/1.0.51/includes/atec-info.php (copied) (copied from mega-cache/trunk/includes/atec-info.php)
-
tags/1.0.51/includes/atec-init.php (copied) (copied from mega-cache/trunk/includes/atec-init.php)
-
tags/1.0.51/includes/atec-tools.php (copied) (copied from mega-cache/trunk/includes/atec-tools.php)
-
tags/1.0.51/includes/atec-update-tools.php (copied) (copied from mega-cache/trunk/includes/atec-update-tools.php)
-
tags/1.0.51/includes/atec-wpmc-about.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-about.php)
-
tags/1.0.51/includes/atec-wpmc-activation.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-activation.php)
-
tags/1.0.51/includes/atec-wpmc-connect-memcached-serializer.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-connect-memcached-serializer.php)
-
tags/1.0.51/includes/atec-wpmc-connect-memcached.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-connect-memcached.php)
-
tags/1.0.51/includes/atec-wpmc-connect-mongodb.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-connect-mongodb.php)
-
tags/1.0.51/includes/atec-wpmc-connect-redis-serializer.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-connect-redis-serializer.php)
-
tags/1.0.51/includes/atec-wpmc-connect-redis.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-connect-redis.php)
-
tags/1.0.51/includes/atec-wpmc-connect-sqlite.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-connect-sqlite.php)
-
tags/1.0.51/includes/atec-wpmc-connect.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-connect.php)
-
tags/1.0.51/includes/atec-wpmc-dashboard.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-dashboard.php)
-
tags/1.0.51/includes/atec-wpmc-deactivation.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-deactivation.php)
-
tags/1.0.51/includes/atec-wpmc-debug.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-debug.php)
-
tags/1.0.51/includes/atec-wpmc-enabled.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-enabled.php)
-
tags/1.0.51/includes/atec-wpmc-groups.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-groups.php)
-
tags/1.0.51/includes/atec-wpmc-install-cache.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-install-cache.php)
-
tags/1.0.51/includes/atec-wpmc-install.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-install.php)
-
tags/1.0.51/includes/atec-wpmc-pcache-cleanup.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-pcache-cleanup.php)
-
tags/1.0.51/includes/atec-wpmc-pcache-comments-hooks.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-pcache-comments-hooks.php)
-
tags/1.0.51/includes/atec-wpmc-pcache-delete.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-pcache-delete.php)
-
tags/1.0.51/includes/atec-wpmc-pcache-deleteAll.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-pcache-deleteAll.php)
-
tags/1.0.51/includes/atec-wpmc-pcache-get.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-pcache-get.php)
-
tags/1.0.51/includes/atec-wpmc-pcache-getHits.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-pcache-getHits.php)
-
tags/1.0.51/includes/atec-wpmc-pcache-keys.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-pcache-keys.php)
-
tags/1.0.51/includes/atec-wpmc-pcache-primer-tools.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-pcache-primer-tools.php)
-
tags/1.0.51/includes/atec-wpmc-pcache-primer.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-pcache-primer.php)
-
tags/1.0.51/includes/atec-wpmc-pcache-reset-primer.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-pcache-reset-primer.php)
-
tags/1.0.51/includes/atec-wpmc-pcache-stats.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-pcache-stats.php)
-
tags/1.0.51/includes/atec-wpmc-pcache-tools.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-pcache-tools.php)
-
tags/1.0.51/includes/atec-wpmc-pcache-woo-hooks.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-pcache-woo-hooks.php)
-
tags/1.0.51/includes/atec-wpmc-pcache-woo-tools.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-pcache-woo-tools.php)
-
tags/1.0.51/includes/atec-wpmc-pcache.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-pcache.php)
-
tags/1.0.51/includes/atec-wpmc-profiler.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-profiler.php)
-
tags/1.0.51/includes/atec-wpmc-register-settings.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-register-settings.php) (1 diff)
-
tags/1.0.51/includes/atec-wpmc-settings.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-settings.php)
-
tags/1.0.51/includes/atec-wpmc-update-ip2loc.php (copied) (copied from mega-cache/trunk/includes/atec-wpmc-update-ip2loc.php)
-
tags/1.0.51/install/advanced-cache-include.php (copied) (copied from mega-cache/trunk/install/advanced-cache-include.php)
-
tags/1.0.51/install/advanced-cache.php.txt (copied) (copied from mega-cache/trunk/install/advanced-cache.php.txt)
-
tags/1.0.51/install/htaccess.txt (copied) (copied from mega-cache/trunk/install/htaccess.txt)
-
tags/1.0.51/install/index.php (copied) (copied from mega-cache/trunk/install/index.php)
-
tags/1.0.51/mega-cache.php (copied) (copied from mega-cache/trunk/mega-cache.php) (2 diffs)
-
tags/1.0.51/readme.txt (copied) (copied from mega-cache/trunk/readme.txt) (2 diffs)
-
tags/1.0.51/uninstall.php (copied) (copied from mega-cache/trunk/uninstall.php)
-
trunk/includes/atec-wpmc-register-settings.php (modified) (1 diff)
-
trunk/mega-cache.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mega-cache/tags/1.0.51/includes/atec-wpmc-register-settings.php
r3251923 r3252100 65 65 $lastOptName = 'atec_WPMC_settings_last'; 66 66 $lastSettings = get_option($lastOptName,[]); 67 if (!atec_wpmc_arr_equal($options,$lastSettings)) 68 { 69 $delAll = false; 70 if (filter_var($options['debug']??0,258)!==filter_var($lastSettings['debug']??0,258)) $delAll = true; 71 72 $cacheChanged = filter_var($lastSettings['cache']??0,258)!==filter_var($options['cache']??0,258); 73 if ($cacheChanged || ($lastSettings['type']??'')!==($options['type']??'')) 67 68 $delAll = false; 69 if (filter_var($options['debug']??0,258)!==filter_var($lastSettings['debug']??0,258)) $delAll = true; 70 if (filter_var($lastSettings['log']??0,258)!==filter_var($options['log']??0,258)) $writeJson=true; 71 72 $cacheChanged = filter_var($lastSettings['cache']??0,258)!==filter_var($options['cache']??0,258); 73 if ($cacheChanged || ($lastSettings['type']??'')!==($options['type']??'')) 74 { 75 $writeJson = true; 76 $delAll = true; 77 if ($cacheChanged) 74 78 { 75 $writeJson = true; 76 $delAll = true; 77 if ($cacheChanged) 78 { 79 @require('atec-wpmc-install-cache.php'); $result = atec_wpmc_install_adv_cache(filter_var($options['cache']??0,258)); 80 if (!$result) { $options['cache']=false; update_option($option_group,$options); } 81 } 79 @require('atec-wpmc-install-cache.php'); $result = atec_wpmc_install_adv_cache(filter_var($options['cache']??0,258)); 80 if (!$result) { $options['cache']=false; update_option($option_group,$options); } 82 81 } 82 } 83 83 84 if ($delAll)85 {86 // ** flush the pcache if pcache settings change ** //87 $atec_wpmc_last_type=$lastSettings['type']??'';88 if (!function_exists('atec_wpmc_connect')) @require('atec-wpmc-connect.php');89 atec_wpmc_connect(null,$atec_wpmc_last_type,false);90 @require('atec-wpmc-pcache-deleteAll.php'); $empty = atec_wpmc_delAll($atec_wpmc_last_type);91 if (!$empty) update_option( 'atec_wpmc_debug', ['type'=>'info', 'message'=>'PCache '.__('cleared','mega-cache').'.'],false);92 }93 else atec_wpmc_reschedule_primer('mc_prime_interval',filter_var($options['prime']??0,258));84 if ($delAll) 85 { 86 // ** flush the pcache if pcache settings change ** // 87 $atec_wpmc_last_type=$lastSettings['type']??''; 88 if (!function_exists('atec_wpmc_connect')) @require('atec-wpmc-connect.php'); 89 atec_wpmc_connect(null,$atec_wpmc_last_type,false); 90 @require('atec-wpmc-pcache-deleteAll.php'); $empty = atec_wpmc_delAll($atec_wpmc_last_type); 91 if (!$empty) update_option( 'atec_wpmc_debug', ['type'=>'info', 'message'=>'PCache '.__('cleared','mega-cache').'.'],false); 92 } 93 else atec_wpmc_reschedule_primer('mc_prime_interval',filter_var($options['prime']??0,258)); 94 94 95 if (filter_var($lastSettings['log']??0,258)!==filter_var($options['log']??0,258)) $writeJson=true; 95 if ($writeJson) 96 { 96 97 97 if ($writeJson) 98 { 99 100 if (!function_exists('atec_wpmc_woo_perma')) @require('atec-wpmc-pcache-woo-tools.php'); 101 $wooPerma = atec_wpmc_woo_perma(); 102 103 $siteUrl = parse_url(get_site_url()??'')['host']??''; 104 $siteUrl = empty($siteUrl)?[]:array_reverse(explode('.',$siteUrl)); 98 if (!function_exists('atec_wpmc_woo_perma')) @require('atec-wpmc-pcache-woo-tools.php'); 99 $wooPerma = atec_wpmc_woo_perma(); 100 101 $siteUrl = parse_url(get_site_url()??'')['host']??''; 102 $siteUrl = empty($siteUrl)?[]:array_reverse(explode('.',$siteUrl)); 105 103 106 global $atec_wpmc_extensions; 107 $arr=['salt'=>$options['salt']??'', 'charset'=>$options['charset']??'', 'log'=>$options['log']??'', 'type'=>$options['type']??'', 'storage'=>$atec_wpmc_extensions[strtolower($options['type']??'')]??[],'woo_perma'=>$wooPerma, 'siteUrl'=>$siteUrl]; 108 if (!class_exists('ATEC_fs')) @require('atec-fs.php'); 109 $afs = new ATEC_fs(); 110 $result = $afs->put(wp_get_upload_dir()['basedir'].'/mega-cache/mega-cache.json',wp_json_encode(array($page_slug.'_settings'=>$arr))); 111 } 112 update_option($lastOptName,$options); 113 }; 104 global $atec_wpmc_extensions; 105 $arr=['salt'=>$options['salt']??'', 'charset'=>get_bloginfo('charset'), 'log'=>$options['log']??'', 'type'=>$options['type']??'', 'storage'=>$atec_wpmc_extensions[strtolower($options['type']??'')]??[],'woo_perma'=>$wooPerma, 'siteUrl'=>$siteUrl]; 106 if (!class_exists('ATEC_fs')) @require('atec-fs.php'); 107 $afs = new ATEC_fs(); 108 $result = $afs->put(wp_get_upload_dir()['basedir'].'/mega-cache/mega-cache.json',wp_json_encode(array($page_slug.'_settings'=>$arr))); 109 } 110 update_option($lastOptName,$options); 114 111 } 115 112 -
mega-cache/tags/1.0.51/mega-cache.php
r3251923 r3252100 5 5 * Plugin URI: https://wpmegacache.com/ 6 6 * Description: Mega Cache is an ultra-fast page caching plugin designed to enhance your WordPress site's performance, including WooCommerce product caching.. 7 * Version: 1.0.5 07 * Version: 1.0.51 8 8 * Requires at least:4.9 9 9 * Tested up to: 6.7 … … 16 16 */ 17 17 18 wp_cache_set('atec_wpmc_version','1.0.5 0');18 wp_cache_set('atec_wpmc_version','1.0.51'); 19 19 20 20 $atec_wpmc_settings = get_option('atec_WPMC_settings',[]); -
mega-cache/tags/1.0.51/readme.txt
r3251923 r3252100 6 6 Requires PHP: 7.4 7 7 Tested up to PHP: 8.4.1 8 Stable tag: 1.0.5 08 Stable tag: 1.0.51 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 45 45 46 46 == Changelog == 47 48 = 1.0.51 [2025.03.07] = 49 * Fixed charset=UTF-8 47 50 48 51 = 1.0.50 [2025.03.06] = -
mega-cache/trunk/includes/atec-wpmc-register-settings.php
r3251923 r3252100 65 65 $lastOptName = 'atec_WPMC_settings_last'; 66 66 $lastSettings = get_option($lastOptName,[]); 67 if (!atec_wpmc_arr_equal($options,$lastSettings)) 68 { 69 $delAll = false; 70 if (filter_var($options['debug']??0,258)!==filter_var($lastSettings['debug']??0,258)) $delAll = true; 71 72 $cacheChanged = filter_var($lastSettings['cache']??0,258)!==filter_var($options['cache']??0,258); 73 if ($cacheChanged || ($lastSettings['type']??'')!==($options['type']??'')) 67 68 $delAll = false; 69 if (filter_var($options['debug']??0,258)!==filter_var($lastSettings['debug']??0,258)) $delAll = true; 70 if (filter_var($lastSettings['log']??0,258)!==filter_var($options['log']??0,258)) $writeJson=true; 71 72 $cacheChanged = filter_var($lastSettings['cache']??0,258)!==filter_var($options['cache']??0,258); 73 if ($cacheChanged || ($lastSettings['type']??'')!==($options['type']??'')) 74 { 75 $writeJson = true; 76 $delAll = true; 77 if ($cacheChanged) 74 78 { 75 $writeJson = true; 76 $delAll = true; 77 if ($cacheChanged) 78 { 79 @require('atec-wpmc-install-cache.php'); $result = atec_wpmc_install_adv_cache(filter_var($options['cache']??0,258)); 80 if (!$result) { $options['cache']=false; update_option($option_group,$options); } 81 } 79 @require('atec-wpmc-install-cache.php'); $result = atec_wpmc_install_adv_cache(filter_var($options['cache']??0,258)); 80 if (!$result) { $options['cache']=false; update_option($option_group,$options); } 82 81 } 82 } 83 83 84 if ($delAll)85 {86 // ** flush the pcache if pcache settings change ** //87 $atec_wpmc_last_type=$lastSettings['type']??'';88 if (!function_exists('atec_wpmc_connect')) @require('atec-wpmc-connect.php');89 atec_wpmc_connect(null,$atec_wpmc_last_type,false);90 @require('atec-wpmc-pcache-deleteAll.php'); $empty = atec_wpmc_delAll($atec_wpmc_last_type);91 if (!$empty) update_option( 'atec_wpmc_debug', ['type'=>'info', 'message'=>'PCache '.__('cleared','mega-cache').'.'],false);92 }93 else atec_wpmc_reschedule_primer('mc_prime_interval',filter_var($options['prime']??0,258));84 if ($delAll) 85 { 86 // ** flush the pcache if pcache settings change ** // 87 $atec_wpmc_last_type=$lastSettings['type']??''; 88 if (!function_exists('atec_wpmc_connect')) @require('atec-wpmc-connect.php'); 89 atec_wpmc_connect(null,$atec_wpmc_last_type,false); 90 @require('atec-wpmc-pcache-deleteAll.php'); $empty = atec_wpmc_delAll($atec_wpmc_last_type); 91 if (!$empty) update_option( 'atec_wpmc_debug', ['type'=>'info', 'message'=>'PCache '.__('cleared','mega-cache').'.'],false); 92 } 93 else atec_wpmc_reschedule_primer('mc_prime_interval',filter_var($options['prime']??0,258)); 94 94 95 if (filter_var($lastSettings['log']??0,258)!==filter_var($options['log']??0,258)) $writeJson=true; 95 if ($writeJson) 96 { 96 97 97 if ($writeJson) 98 { 99 100 if (!function_exists('atec_wpmc_woo_perma')) @require('atec-wpmc-pcache-woo-tools.php'); 101 $wooPerma = atec_wpmc_woo_perma(); 102 103 $siteUrl = parse_url(get_site_url()??'')['host']??''; 104 $siteUrl = empty($siteUrl)?[]:array_reverse(explode('.',$siteUrl)); 98 if (!function_exists('atec_wpmc_woo_perma')) @require('atec-wpmc-pcache-woo-tools.php'); 99 $wooPerma = atec_wpmc_woo_perma(); 100 101 $siteUrl = parse_url(get_site_url()??'')['host']??''; 102 $siteUrl = empty($siteUrl)?[]:array_reverse(explode('.',$siteUrl)); 105 103 106 global $atec_wpmc_extensions; 107 $arr=['salt'=>$options['salt']??'', 'charset'=>$options['charset']??'', 'log'=>$options['log']??'', 'type'=>$options['type']??'', 'storage'=>$atec_wpmc_extensions[strtolower($options['type']??'')]??[],'woo_perma'=>$wooPerma, 'siteUrl'=>$siteUrl]; 108 if (!class_exists('ATEC_fs')) @require('atec-fs.php'); 109 $afs = new ATEC_fs(); 110 $result = $afs->put(wp_get_upload_dir()['basedir'].'/mega-cache/mega-cache.json',wp_json_encode(array($page_slug.'_settings'=>$arr))); 111 } 112 update_option($lastOptName,$options); 113 }; 104 global $atec_wpmc_extensions; 105 $arr=['salt'=>$options['salt']??'', 'charset'=>get_bloginfo('charset'), 'log'=>$options['log']??'', 'type'=>$options['type']??'', 'storage'=>$atec_wpmc_extensions[strtolower($options['type']??'')]??[],'woo_perma'=>$wooPerma, 'siteUrl'=>$siteUrl]; 106 if (!class_exists('ATEC_fs')) @require('atec-fs.php'); 107 $afs = new ATEC_fs(); 108 $result = $afs->put(wp_get_upload_dir()['basedir'].'/mega-cache/mega-cache.json',wp_json_encode(array($page_slug.'_settings'=>$arr))); 109 } 110 update_option($lastOptName,$options); 114 111 } 115 112 -
mega-cache/trunk/mega-cache.php
r3251923 r3252100 5 5 * Plugin URI: https://wpmegacache.com/ 6 6 * Description: Mega Cache is an ultra-fast page caching plugin designed to enhance your WordPress site's performance, including WooCommerce product caching.. 7 * Version: 1.0.5 07 * Version: 1.0.51 8 8 * Requires at least:4.9 9 9 * Tested up to: 6.7 … … 16 16 */ 17 17 18 wp_cache_set('atec_wpmc_version','1.0.5 0');18 wp_cache_set('atec_wpmc_version','1.0.51'); 19 19 20 20 $atec_wpmc_settings = get_option('atec_WPMC_settings',[]); -
mega-cache/trunk/readme.txt
r3251923 r3252100 6 6 Requires PHP: 7.4 7 7 Tested up to PHP: 8.4.1 8 Stable tag: 1.0.5 08 Stable tag: 1.0.51 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 45 45 46 46 == Changelog == 47 48 = 1.0.51 [2025.03.07] = 49 * Fixed charset=UTF-8 47 50 48 51 = 1.0.50 [2025.03.06] =
Note: See TracChangeset
for help on using the changeset viewer.