Version Description
- 5-16-2022 = Added: Swift Performance Pro to the Purge Cache system
Download this release
Release Info
Developer | mainwp |
Plugin | MainWP Child |
Version | 4.2.3 |
Comparing to | |
See all releases |
Code changes from version 4.2.2 to 4.2.3
- class/class-mainwp-child-cache-purge.php +38 -1
- class/class-mainwp-child.php +1 -1
- mainwp-child.php +1 -1
- readme.txt +4 -1
class/class-mainwp-child-cache-purge.php
CHANGED
@@ -118,6 +118,7 @@ class MainWP_Child_Cache_Purge {
|
|
118 |
'litespeed-cache/litespeed-cache.php' => 'LiteSpeed Cache',
|
119 |
'sg-cachepress/sg-cachepress.php' => 'SG CachePress',
|
120 |
'swift-performance-lite/performance.php' => 'Swift Performance Lite',
|
|
|
121 |
'wp-fastest-cache/wpFastestCache.php' => 'WP Fastest Cache',
|
122 |
'w3-total-cache/w3-total-cache.php' => 'W3 Total Cache',
|
123 |
'hummingbird-performance/wp-hummingbird.php' => 'Hummingbird Performance',
|
@@ -170,6 +171,9 @@ class MainWP_Child_Cache_Purge {
|
|
170 |
$information = $this->sitegrounds_optimizer_auto_purge_cache();
|
171 |
break;
|
172 |
case 'Swift Performance Lite':
|
|
|
|
|
|
|
173 |
$information = $this->swift_performance_auto_purge_cache();
|
174 |
break;
|
175 |
case 'WP Fastest Cache':
|
@@ -451,7 +455,7 @@ class MainWP_Child_Cache_Purge {
|
|
451 |
/**
|
452 |
* Purge Swift Performance Lite Cache after Updates.
|
453 |
*/
|
454 |
-
public function
|
455 |
if ( class_exists( 'Swift_Performance_Cache' ) ) {
|
456 |
|
457 |
// Clear All Swift Performance Lite Cache.
|
@@ -481,6 +485,39 @@ class MainWP_Child_Cache_Purge {
|
|
481 |
}
|
482 |
}
|
483 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
484 |
/**
|
485 |
* Purge SiteGrounds Optimiser Cache after Updates.
|
486 |
*/
|
118 |
'litespeed-cache/litespeed-cache.php' => 'LiteSpeed Cache',
|
119 |
'sg-cachepress/sg-cachepress.php' => 'SG CachePress',
|
120 |
'swift-performance-lite/performance.php' => 'Swift Performance Lite',
|
121 |
+
'swift-performance/performance.php' => 'Swift Performance',
|
122 |
'wp-fastest-cache/wpFastestCache.php' => 'WP Fastest Cache',
|
123 |
'w3-total-cache/w3-total-cache.php' => 'W3 Total Cache',
|
124 |
'hummingbird-performance/wp-hummingbird.php' => 'Hummingbird Performance',
|
171 |
$information = $this->sitegrounds_optimizer_auto_purge_cache();
|
172 |
break;
|
173 |
case 'Swift Performance Lite':
|
174 |
+
$information = $this->swift_performance_lite_auto_purge_cache();
|
175 |
+
break;
|
176 |
+
case 'Swift Performance':
|
177 |
$information = $this->swift_performance_auto_purge_cache();
|
178 |
break;
|
179 |
case 'WP Fastest Cache':
|
455 |
/**
|
456 |
* Purge Swift Performance Lite Cache after Updates.
|
457 |
*/
|
458 |
+
public function swift_performance_lite_auto_purge_cache() {
|
459 |
if ( class_exists( 'Swift_Performance_Cache' ) ) {
|
460 |
|
461 |
// Clear All Swift Performance Lite Cache.
|
485 |
}
|
486 |
}
|
487 |
|
488 |
+
/**
|
489 |
+
* Purge Swift Performance Cache after Updates.
|
490 |
+
*/
|
491 |
+
public function swift_performance_auto_purge_cache() {
|
492 |
+
if ( class_exists( 'Swift_Performance_Cache' ) ) {
|
493 |
+
|
494 |
+
// Clear All Swift Performance Cache.
|
495 |
+
\Swift_Performance_Cache::clear_all_cache();
|
496 |
+
|
497 |
+
// record results.
|
498 |
+
update_option( 'mainwp_cache_control_last_purged', time() );
|
499 |
+
return array(
|
500 |
+
'Last Purged' => get_option( 'mainwp_cache_control_last_purged', false ),
|
501 |
+
'Cache Solution' => get_option( 'mainwp_cache_control_cache_solution', false ),
|
502 |
+
'Cache Control Enabled' => get_option( 'mainwp_child_auto_purge_cache' ),
|
503 |
+
'Cloudflair Enabled' => get_option( 'mainwp_child_cloud_flair_enabled' ),
|
504 |
+
'CloudFlair Email' => get_option( 'mainwp_cloudflair_email' ),
|
505 |
+
'Cloudflair Key' => get_option( 'mainwp_cloudflair_key' ),
|
506 |
+
'result' => 'Swift Performance => Cache auto cleared on: (' . current_time( 'mysql' ) . ')',
|
507 |
+
);
|
508 |
+
} else {
|
509 |
+
return array(
|
510 |
+
'Last Purged' => get_option( 'mainwp_cache_control_last_purged', false ),
|
511 |
+
'Cache Solution' => get_option( 'mainwp_cache_control_cache_solution', false ),
|
512 |
+
'Cache Control Enabled' => get_option( 'mainwp_child_auto_purge_cache' ),
|
513 |
+
'Cloudflair Enabled' => get_option( 'mainwp_child_cloud_flair_enabled' ),
|
514 |
+
'CloudFlair Email' => get_option( 'mainwp_cloudflair_email' ),
|
515 |
+
'Cloudflair Key' => get_option( 'mainwp_cloudflair_key' ),
|
516 |
+
'result' => 'Swift Performance => There was an issue purging your cache.',
|
517 |
+
);
|
518 |
+
}
|
519 |
+
}
|
520 |
+
|
521 |
/**
|
522 |
* Purge SiteGrounds Optimiser Cache after Updates.
|
523 |
*/
|
class/class-mainwp-child.php
CHANGED
@@ -33,7 +33,7 @@ class MainWP_Child {
|
|
33 |
*
|
34 |
* @var string MainWP Child plugin version.
|
35 |
*/
|
36 |
-
public static $version = '4.2.
|
37 |
|
38 |
/**
|
39 |
* Private variable containing the latest MainWP Child update version.
|
33 |
*
|
34 |
* @var string MainWP Child plugin version.
|
35 |
*/
|
36 |
+
public static $version = '4.2.3';
|
37 |
|
38 |
/**
|
39 |
* Private variable containing the latest MainWP Child update version.
|
mainwp-child.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
* Author: MainWP
|
13 |
* Author URI: https://mainwp.com
|
14 |
* Text Domain: mainwp-child
|
15 |
-
* Version: 4.2.
|
16 |
* Requires at least: 5.4
|
17 |
* Requires PHP: 7.0
|
18 |
*/
|
12 |
* Author: MainWP
|
13 |
* Author URI: https://mainwp.com
|
14 |
* Text Domain: mainwp-child
|
15 |
+
* Version: 4.2.3
|
16 |
* Requires at least: 5.4
|
17 |
* Requires PHP: 7.0
|
18 |
*/
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Plugin URI: https://mainwp.com
|
|
7 |
Requires at least: 5.4
|
8 |
Tested up to: 6.0
|
9 |
Requires PHP: 7.0
|
10 |
-
Stable tag: 4.2.
|
11 |
License: GPLv3 or later
|
12 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
13 |
|
@@ -111,6 +111,9 @@ Sure we have a quick FAQ with a lot more questions and answers [here](https://ma
|
|
111 |
|
112 |
== Changelog ==
|
113 |
|
|
|
|
|
|
|
114 |
= 4.2.2 - 5-10-2022 =
|
115 |
* Fixed: An issue with detecting abandoned plugins and themes on specific setups
|
116 |
* Fixed: An issue with running scheduled events on specific setups
|
7 |
Requires at least: 5.4
|
8 |
Tested up to: 6.0
|
9 |
Requires PHP: 7.0
|
10 |
+
Stable tag: 4.2.3
|
11 |
License: GPLv3 or later
|
12 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
13 |
|
111 |
|
112 |
== Changelog ==
|
113 |
|
114 |
+
= 4.2.3 - 5-16-2022 =
|
115 |
+
Added: Swift Performance Pro to the Purge Cache system
|
116 |
+
|
117 |
= 4.2.2 - 5-10-2022 =
|
118 |
* Fixed: An issue with detecting abandoned plugins and themes on specific setups
|
119 |
* Fixed: An issue with running scheduled events on specific setups
|