Hello @leandroprz,
Adding new features generally depends on the demand but as of now, we have decided that a manual option would not be implemented.
By default, the database maintenance is executed through a cron event scheduled to be performed every week. Once the process is completed the same event gets automatically scheduled to be executed in 7 days.
If you prefer to have control over the execution this can be easily done through WP-CLI.
You can enlist the scheduled cron events using the following command:
wp cron event list
If you want to force the cron event on demand you can use this command which will run the optimization immediately:
wp cron event run siteground_optimizer_database_optimization_cron
Best regards,
Dimo Dimov
Thread Starter
Leandro
(@leandroprz)
Is it possible to keep it automatic but disable the deletion of drafts?
Hello @leandroprz ,
The plugin does not have such an option at the moment, but the option is in development and it should come in the coming versions of the plugin. Until then, you can disable the automatic database maintenance option and schedule your manual database maintenance evens to wha you want. Here is one example for deleting all trashed posts, for example:
https://developer.ww.wp.xz.cn/cli/commands/post/delete/
Regards,
Plamen.M
Tech Support Team
SiteGround.com
-
This reply was modified 4 years, 1 month ago by
Plamen M.