Supporting Updating Options Via WP-CLI ?
-
Does the WP Cloudflare Super Page Cache plugin support updating its various options via WP-CLI https://developer.www.ads-software.com/cli/commands/option/ ? I am trying to look at automating the install and configuration of the plugin from bash scripting for my WordPress auto installer.
wp plugin install wp-cloudflare-page-cache --activate
wp option get swcfpc_config
a:103:{s:9:"cf_zoneid";s:0:"";s:14:"cf_zoneid_list";a:0:{}s:8:"cf_email";s:0:"";s:11:"cf_apitoken";s:0:"";s:9:"cf_apikey";s:0:"";s:8:"cf_token";s:0:"";s:18:"cf_apitoken_domain";s:19:"https://msdomain.com";s:13:"cf_old_bc_ttl";s:0:"";s:15:"cf_page_rule_id";s:0:"";s:30:"cf_bypass_backend_page_rule_id";s:0:"";s:27:"cf_bypass_backend_page_rule";s:1:"0";s:13:"cf_auto_purge";i:1;s:17:"cf_auto_purge_all";i:0;s:25:"cf_auto_purge_on_comments";i:0;s:16:"cf_cache_enabled";i:0;s:9:"cf_maxage";i:604800;s:17:"cf_browser_maxage";i:60;s:16:"cf_post_per_page";s:2:"10";s:23:"cf_purge_url_secret_key";s:20:"Nzja2mDSw0Q41pEmBDaW";s:16:"cf_strip_cookies";i:0;s:17:"cf_fallback_cache";i:0;s:21:"cf_fallback_cache_ttl";i:0;s:28:"cf_fallback_cache_auto_purge";i:1;s:22:"cf_fallback_cache_curl";i:0;s:31:"cf_fallback_cache_excluded_urls";a:0:{}s:34:"cf_fallback_cache_excluded_cookies";a:7:{i:0;s:20:"wordpress_logged_in_";i:1;s:3:"wp-";i:2;s:8:"comment_";i:3;s:12:"woocommerce_";i:4;s:14:"wordpressuser_";i:5;s:14:"wordpresspass_";i:6;s:14:"wordpress_sec_";}s:30:"cf_fallback_cache_save_headers";s:1:"0";s:12:"cf_preloader";s:1:"1";s:27:"cf_preloader_start_on_purge";i:1;s:22:"cf_preloader_nav_menus";a:0:{}s:20:"cf_preload_last_urls";i:1;s:30:"cf_preload_excluded_post_types";a:4:{i:0;s:10:"attachment";i:1;s:8:"jet-menu";i:2;s:17:"elementor_library";i:3;s:14:"jet-theme-core";}s:23:"cf_preload_sitemap_urls";a:0:{}s:16:"cf_woker_enabled";i:0;s:11:"cf_woker_id";s:13:"swcfpc_worker";s:17:"cf_woker_route_id";s:0:"";s:23:"cf_disable_cache_buster";s:1:"0";s:16:"cf_excluded_urls";a:3:{i:0;s:17:"/*ao_noptirocket*";i:1;s:16:"/*jetpack=comms*";i:2;s:17:"/*ao_noptirocket*";}s:20:"cf_bypass_front_page";i:0;s:15:"cf_bypass_pages";i:0;s:14:"cf_bypass_home";i:0;s:18:"cf_bypass_archives";i:0;s:14:"cf_bypass_tags";i:0;s:18:"cf_bypass_category";i:0;s:22:"cf_bypass_author_pages";i:0;s:21:"cf_bypass_single_post";i:0;s:15:"cf_bypass_feeds";i:1;s:22:"cf_bypass_search_pages";i:1;s:13:"cf_bypass_404";i:1;s:19:"cf_bypass_logged_in";i:1;s:13:"cf_bypass_amp";i:1;s:21:"cf_bypass_file_robots";i:1;s:17:"cf_bypass_sitemap";i:1;s:14:"cf_bypass_ajax";i:1;s:25:"cf_cache_control_htaccess";i:0;s:27:"cf_browser_caching_htaccess";i:0;s:12:"cf_auth_mode";i:0;s:19:"cf_bypass_query_var";i:0;s:18:"cf_varnish_support";s:1:"0";s:21:"cf_varnish_auto_purge";s:1:"0";s:19:"cf_varnish_hostname";s:9:"localhost";s:15:"cf_varnish_port";i:6081;s:13:"cf_varnish_cw";i:0;s:23:"cf_varnish_purge_method";s:5:"PURGE";s:27:"cf_varnish_purge_all_method";s:5:"PURGE";s:23:"cf_bypass_woo_shop_page";i:0;s:19:"cf_bypass_woo_pages";i:0;s:30:"cf_bypass_woo_product_tax_page";i:0;s:30:"cf_bypass_woo_product_tag_page";i:0;s:30:"cf_bypass_woo_product_cat_page";i:0;s:26:"cf_bypass_woo_product_page";i:0;s:23:"cf_bypass_woo_cart_page";i:1;s:27:"cf_bypass_woo_checkout_page";i:1;s:31:"cf_bypass_woo_checkout_pay_page";i:1;s:30:"cf_auto_purge_woo_product_page";s:1:"1";s:28:"cf_w3tc_purge_on_flush_minfy";i:0;s:28:"cf_w3tc_purge_on_flush_posts";i:0;s:34:"cf_w3tc_purge_on_flush_objectcache";i:0;s:36:"cf_w3tc_purge_on_flush_fragmentcache";i:0;s:30:"cf_w3tc_purge_on_flush_dbcache";i:0;s:26:"cf_w3tc_purge_on_flush_all";i:1;s:32:"cf_wp_rocket_purge_on_post_flush";i:1;s:34:"cf_wp_rocket_purge_on_domain_flush";i:1;s:26:"cf_wp_rocket_disable_cache";s:1:"0";s:33:"cf_litespeed_purge_on_cache_flush";i:1;s:35:"cf_hummingbird_purge_on_cache_flush";i:1;s:35:"cf_wp_optimize_purge_on_cache_flush";s:1:"0";s:23:"cf_yasr_purge_on_rating";i:0;s:29:"cf_wpacu_purge_on_cache_flush";s:1:"0";s:35:"cf_autoptimize_purge_on_cache_flush";s:1:"1";s:27:"cf_bypass_edd_checkout_page";s:1:"1";s:26:"cf_bypass_edd_success_page";s:1:"0";s:26:"cf_bypass_edd_failure_page";s:1:"0";s:35:"cf_bypass_edd_purchase_history_page";s:1:"1";s:33:"cf_bypass_edd_login_redirect_page";s:1:"1";s:29:"cf_auto_purge_edd_payment_add";s:1:"1";s:11:"log_enabled";i:1;s:17:"log_max_file_size";s:1:"2";s:30:"cf_remove_purge_option_toolbar";i:0;s:25:"cf_disable_single_metabox";i:1;s:15:"cf_seo_redirect";s:1:"1";s:25:"cf_opcache_purge_on_flush";i:0;s:37:"cf_cache_enabler_purge_on_cache_flush";s:1:"0";}
looking at how to update the cf_zoneid, cf_apitoken and other settings via command line rather than GUI.
cheers
George
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Supporting Updating Options Via WP-CLI ?’ is closed to new replies.