• Resolved Flint

    (@flintstoned)


    Hi SG,

    Is it possible to add define('DISABLE_WP_CRON', true); to wp-config via the plugin as an extra checkbox option? Would be helpful!

    Looking forward to your reply.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Dimitar Petrov

    (@demiro)

    Hello @flintstoned,

    We do not recommend deactivating the internal WordPress Cron Job script. Please note that many of the optimization features of our plugin rely on this script and if it is disabled, the features will not work.

    Best Regards,
    Dimitar Petrov

    Hi @demiro,

    Respectfully, please allow me to interject. Publicly (and privately), we were told by SG that for best performance, it’s best to disable WP Cron and use a Real Cron instead.

    So, what’s going on? Should we use both WP Cron and a Real Cron at the same time?

    At this time, we have WP Cron disabled, and a Real Cron enabled. No issues so far that we know of.

    Please clarify or explain further.

    Thank you.

    Plugin Support Vladimir Trandev

    (@vtrandev)

    Hello @generosus,

    In some cases, the wp-cron.php file may become a target of a DOS attack, or caching plugins can interfere with its execution which can cause either a lot of server load or the scheduled tasks may not execute properly and timely. This is why you can substitute this constant file execution with a real cron job.

    Regards,
    Vladimir

    Hi @vtrandev,

    Apologies. Your statement contradicts @demiro’s.

    So, when using your plugin, are you saying it’s best to only use a Real Cron?

    Thank you.

    Plugin Support daniellaivanova

    (@daniellaivanova)

    Hello @generosus,

    Indeed, as @demiro mentioned, keeping the WordPress cron job is essential for the SG Optimizer plugin’s functionalities. Deactivating the cron job and substituting it with a real one would interfere with some of the environment and media features.

    There are some exceptions, where substituting it with a real one is recommended, however, it depends on the website itself, as @vtrandev explained.

    Still, keeping the WordPress real cron is highly recommended in case you want to take advantage of all of the optimizations supported by the SG Optimizer plugin.

    Best Regards,
    Daniela Ivanova

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Enable/disable DISABLE_WP_CRON via Plugin’ is closed to new replies.