Title: Database optimisation occurring without permission?
Last modified: August 5, 2022

---

# Database optimisation occurring without permission?

 *  Resolved [amee](https://wordpress.org/support/users/ameephillips/)
 * (@ameephillips)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/database-optimisation-occurring-without-permission/)
 * Why in my cron jobs can I see
 * hook: wp_database_optimization_cron
    action: SiteGround_Optimizer\Database_Optimizer\
   Database_Optimizer_Background->handle_cron_healthcheck()
 * Despite having scheduled database maintenance toggled off?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [Vladimir Trandev](https://wordpress.org/support/users/vtrandev/)
 * (@vtrandev)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/database-optimisation-occurring-without-permission/#post-15892895)
 * Hello [@ameephillips](https://wordpress.org/support/users/ameephillips/),
 * Have in mind that the “Scheduled Database Maintenance” hook is:
 * `siteground_optimizer_database_optimization_cron`
 * You can verify the above information by activating/deactivating the mentioned
   option in your dashboard.
 * However, if this is not the case, please provide us with your domain.
 * Regards,
    Vladimir
 *  Thread Starter [amee](https://wordpress.org/support/users/ameephillips/)
 * (@ameephillips)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/database-optimisation-occurring-without-permission/#post-15897828)
 * Hi,
 * I’m confused by this response. Are you suggesting that the cron event I referenced
   does not originate from this plugin?
 * I know that the cron event is taking place because whenever a particular table
   in my database is optimised it crashes my website. It is why when I saw my website
   was crashed I immediately knew to check my cron events for evidence of your plugin
   having run database optimisation (despite the fact I had toggled it to off when
   I previously identified that it was crashing my website). Sure enough the timing
   of this cron event correlates precisely with when the website crashed.
 * I deleted the cron event, but there is one scheduled for this Friday, this time
   with the hook:
 * siteground_optimizer_database_optimization_cron
 * and the action:
 * SiteGround_Optimizer\Database_Optimizer\Database_Optimizer->optimize_database()
 * Screenshots taken moments ago of both the cron event scheduled and the database
   optimisation being toggled off are below:
 * [https://ibb.co/nkFsFD7](https://ibb.co/nkFsFD7)
    [https://ibb.co/rKB4X68](https://ibb.co/rKB4X68)
 *  Thread Starter [amee](https://wordpress.org/support/users/ameephillips/)
 * (@ameephillips)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/database-optimisation-occurring-without-permission/#post-15897849)
 * I just toggled the setting on and off and it appears to have now removed the 
   cron event. I’m not sure what caused it to schedule a database maintenance event
   since I haven’t touched the setting in many months. Perhaps it was linked to 
   me recently updating the plugin.
 * I will be sure to check when I update this plugin in future since for me the 
   impact of it occurring is the site requiring a full restore.
 *  Plugin Support [Dimitar Petrov](https://wordpress.org/support/users/demiro/)
 * (@demiro)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/database-optimisation-occurring-without-permission/#post-15897861)
 * [@ameephillips](https://wordpress.org/support/users/ameephillips/),
 * Thank you for the update.
 * We will perform further tests on our end in order to confirm if the update was
   the origin of the issue and our developers will be notified.
 * We are glad to hear that you have managed to resolve the issue.
 * Best Regards,
    Dimitar Petrov

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Database optimisation occurring without permission?’ is closed to new
replies.

 * ![](https://ps.w.org/sg-cachepress/assets/icon-256x256.gif?rev=2971889)
 * [Speed Optimizer - The All-In-One Performance-Boosting Plugin](https://wordpress.org/plugins/sg-cachepress/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-cachepress/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-cachepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-cachepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-cachepress/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Dimitar Petrov](https://wordpress.org/support/users/demiro/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/database-optimisation-occurring-without-permission/#post-15897861)
 * Status: resolved