-
Notifications
You must be signed in to change notification settings - Fork 18
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
Installing and Activating via WP-CLI #464
Comments
Subscribing! |
@raamdev Suggestion for how to get this working. Or, at least a place to start. Above this line... Add the following: // Automatic activation when installed via CLI.
if(strcasecmp(PHP_SAPI, 'cli') === 0 // Activated from a CLI?
if(!get_option(__METHOD__.'__options') // First-time activation?
&& (!is_multisite() || !get_site_option(__NAMESPACE__.'_options')))
{
$this->options['enable'] = '1';
update_option(__NAMESPACE__.'_options', $this->options);
if(is_multisite()) update_site_option(__NAMESPACE__.'_options', $this->options);
} |
Would really like this as I manage a lot of WP sites as well. |
Next Release Changelog:
|
Thank you! |
Comet Cache v160416 has been released and includes changes from this GitHub Issue. See the v160416 announcement for further details. This issue will now be locked to further updates. If you have something to add related to this GitHub Issue, please open a new GitHub Issue and reference this one (#464). |
A user @ WordPress.org writes...
I'm not sure what's required to make this happen, but it would be great to make ZenCache fully compatible with WP-CLI so that installs can be automated.
Marking this as
needs research
.Related: #395 #394 #465 #289 #464 #352
The text was updated successfully, but these errors were encountered: