-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cli multisite #690
base: master
Are you sure you want to change the base?
Cli multisite #690
Conversation
Have you tested your change? |
Made changes to the validation:
|
@hi-hai please review the last push "Router - Get hash improvement" |
CLI Purge URL - Rewrote code to check for blog to switch before sending purge request Change hash function to allow blog switching
} | ||
|
||
// Test if link can be found. | ||
if (get_blog_id_from_url($deconstructed['host'], $path) === 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This if
can be moved to be under line 187's else
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is used for test if subdomain install has the domain url sent
Debug2::debug('[Router] LSCWP_CTRL query string - did not match admin IP: ' . $action); | ||
return; | ||
} | ||
|
||
$hash = Router::get_hash(self::VALIDATE_PURGE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be under the cond $action == Core::ACTION_QS_PURGE
, otherwise it will update hash value for all verify_action()
Fixed cli command:
wp --url=http://test.com/url litespeed-purge url
When using Multisite and behind LiteSpeed Web ADC