Skip to content
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

Fix: support both VIP and normal WP CLI #45

Merged
merged 3 commits into from
Apr 26, 2021
Merged

Fix: support both VIP and normal WP CLI #45

merged 3 commits into from
Apr 26, 2021

Conversation

dinhtungdu
Copy link
Contributor

Fixes #43.

@dinhtungdu dinhtungdu requested a review from dkotter April 19, 2021 14:45
@jeffpaul jeffpaul added this to the 1.1.0 milestone Apr 19, 2021
$this->stop_the_insanity();
if ( class_exists( 'WPCOM_VIP_CLI_Command' ) ) {
// Free up memory.
$this->stop_the_insanity();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it would be worth adding our own version of this method, so if someone isn't on VIP, they still get the performance benefits this provides? I'm not worried about the start_bulk_operation or end_bulk_operation methods, as those don't do much in our case but having this method could help some with performance when processing large batches of content

@jeffpaul jeffpaul modified the milestones: 1.0.1, 1.0.2 Apr 23, 2021
@dinhtungdu dinhtungdu requested a review from dkotter April 23, 2021 18:54
@jeffpaul jeffpaul merged commit 9358c47 into develop Apr 26, 2021
@jeffpaul jeffpaul deleted the fix/43 branch April 26, 2021 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update CLI command to include non-VIP support
3 participants