rtCamp / nginx-helper

Nginx Helper for WordPress caching, permalinks & efficient file handling in multisite
https://wordpress.org/plugins/nginx-helper/
228 stars 121 forks source link

can we set settings over wp-cli? #307

Open osevan opened 1 year ago

osevan commented 1 year ago

We should set settings easy without dashboard login for nginx-helper, especially, when you have several sites.

Which tables should i edit to fix this manually with sql update command?

Because wp-cli settings integration isnt possible for now.

Thanks and

Best regards

sistason commented 1 year ago

I think you mean how can we initially set the default settings? Because wp option patch update rt_wp_nginx_helper_options enable_purge 1 is working fine with wp-cli.

But until you set the default settings, which seems to only be possible by clicking a setting (and therefore merging it with the defaults), the db (and therefore wp-cli) is emtpy.

My solution would be to write the default settings to the options table when activating the plugin. Can this be a feature for the future?

osevan commented 11 months ago

I think you mean how can we initially set the default settings? Because wp option patch update rt_wp_nginx_helper_options enable_purge 1 is working fine with wp-cli.

But until you set the default settings, which seems to only be possible by clicking a setting (and therefore merging it with the defaults), the db (and therefore wp-cli) is emtpy.

My solution would be to write the default settings to the options table when activating the plugin. Can this be a feature for the future?

Yes. I hope new feature for wp-cli for settings setting over command line could be available soon, for full automized settings setup.

osevan commented 9 months ago

Any information about this?