From 697446fb669b717025cd62a9c55e73b481bf491a Mon Sep 17 00:00:00 2001 From: Riddhesh Sanghvi Date: Tue, 30 Jun 2020 11:34:48 +0530 Subject: [PATCH 1/2] Add proxy cache status in site info Signed-off-by: Riddhesh Sanghvi --- src/WordPress.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/WordPress.php b/src/WordPress.php index 1f83802..978988d 100644 --- a/src/WordPress.php +++ b/src/WordPress.php @@ -586,6 +586,7 @@ public function info( $args, $assoc_args ) { $info[] = [ 'SSL Wildcard', $this->site_data['site_ssl_wildcard'] ? 'Yes' : 'No' ]; } $info[] = [ 'Cache', $this->cache_type ? 'Enabled' : 'None' ]; + $info[] = [ 'Proxy Cache', $this->site_data['proxy_cache'] ? 'Enabled' : 'Off' ]; \EE\Utils\format_table( $info ); From 363890cae170c81c43190d2fc36726f20f3cb46a Mon Sep 17 00:00:00 2001 From: Riddhesh Sanghvi Date: Tue, 30 Jun 2020 11:38:36 +0530 Subject: [PATCH 2/2] Update to strict checking Signed-off-by: Riddhesh Sanghvi --- src/WordPress.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WordPress.php b/src/WordPress.php index 978988d..8245a2f 100644 --- a/src/WordPress.php +++ b/src/WordPress.php @@ -586,7 +586,7 @@ public function info( $args, $assoc_args ) { $info[] = [ 'SSL Wildcard', $this->site_data['site_ssl_wildcard'] ? 'Yes' : 'No' ]; } $info[] = [ 'Cache', $this->cache_type ? 'Enabled' : 'None' ]; - $info[] = [ 'Proxy Cache', $this->site_data['proxy_cache'] ? 'Enabled' : 'Off' ]; + $info[] = [ 'Proxy Cache', 'on' === $this->site_data['proxy_cache'] ? 'Enabled' : 'Off' ]; \EE\Utils\format_table( $info );