Created
August 22, 2018 15:04
-
-
Save doofusdavid/daf47a90b965720bd9e64bbf44d75972 to your computer and use it in GitHub Desktop.
Use WP-CLI to update plugin settings (purge-varnish) in multisite network
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp site list --field=url | xargs -n1 -I % wp option update --url=% varnish_version 4 | |
wp site list --field=url | xargs -n1 -I % wp option update --url=% varnish_control_terminal 127.0.0.1:6082 | |
wp site list --field=url | xargs -n1 -I % wp option update --url=% varnish_control_key SECRET_KEY_HERE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment