From 37808f75eb73018a20fe656dc0cb66e24cd296db Mon Sep 17 00:00:00 2001 From: Gagan Deep Singh Date: Fri, 10 Jul 2015 07:14:00 +0530 Subject: [PATCH 1/2] Updated the initial settings to include the 'purge_method' which on new installations is generating error message --- admin/install.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin/install.php b/admin/install.php index da5f3328..7a8286dd 100644 --- a/admin/install.php +++ b/admin/install.php @@ -93,6 +93,8 @@ function rt_wp_nginx_helper_get_options() { $rt_wp_nginx_helper_get_options[ 'purge_page_on_new_comment' ] = 1; $rt_wp_nginx_helper_get_options[ 'purge_page_on_deleted_comment' ] = 1; + $rt_wp_nginx_helper_get_options[ 'purge_method' ] = 'get_request'; + return $rt_wp_nginx_helper_get_options; } } \ No newline at end of file From c099b8ef2d620c8adf3ef1c2736257fbcefd9de1 Mon Sep 17 00:00:00 2001 From: Gagan Deep Singh Date: Fri, 10 Jul 2015 07:26:54 +0530 Subject: [PATCH 2/2] Fixing indentation --- admin/install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/install.php b/admin/install.php index 7a8286dd..0882f2c0 100644 --- a/admin/install.php +++ b/admin/install.php @@ -93,7 +93,7 @@ function rt_wp_nginx_helper_get_options() { $rt_wp_nginx_helper_get_options[ 'purge_page_on_new_comment' ] = 1; $rt_wp_nginx_helper_get_options[ 'purge_page_on_deleted_comment' ] = 1; - $rt_wp_nginx_helper_get_options[ 'purge_method' ] = 'get_request'; + $rt_wp_nginx_helper_get_options[ 'purge_method' ] = 'get_request'; return $rt_wp_nginx_helper_get_options; }