• Resolved jasperdemann

    (@jasperdemann)


    Hi
    In the ‘Settings’ tab, I have both the ‘Enable scheduled clean-up and optimisation’ and ‘Optimise database tables’ boxes checked, but in the ‘Optimisations’ tab underneath ‘Status’ it says ‘There was no scheduled optimisation’. and I can see from the optimisations list underneath that nothing is happening.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The issue you’re experiencing where the ‘Optimisations’ tab shows ‘There was no scheduled optimisation’ even though you’ve enabled scheduled clean-up and optimization, and nothing appears to be happening, is likely related to WordPress’s scheduling system (wp-cron).

    Here are a few steps you can take to troubleshoot and resolve this issue:

    1. Check if wp-cron is disabled: Ensure that the wp-cron is not disabled in your wp-config.php file:
    define('DISABLE_WP_CRON', false);
    1. Loopback Connections: Some hosting providers disable loopback connections, which are necessary for WordPress’s scheduling system. You can enable an alternate cron system by adding the following line to your wp-config.php file:
    define('ALTERNATE_WP_CRON', true);

    If after these steps the issue persists, consider reaching out to your hosting provider to check if there are any server-level settings or restrictions that might be affecting wp-cron.

    Let me know how it goes. Thanks!

      Thread Starter jasperdemann

      (@jasperdemann)

      Hi
      Thanks for the info.
      wp-cron is enabled and I added the line of code to the file but it didn’t help.
      I contacted Hostinger and they said they don’t enable loopback connections so they suggested using the same line of code in wp-config.php.
      I tried deactivating all other plugins and changing the theme – no change.
      So last night I scheduled a ‘Daily’ optimisation/clean-up for tonight, installed WP Crontrol plugin, found the hook wpo_cron_event2 and ran it.
      The optimisation was successful, as in the ‘Optimisations’ tab > ‘Status’ it showed last night’s date and time so I crossed my fingers and……tonight it seems to have worked. I’m not sure why, but I’ll take it!
      Now in the ‘Optimisations’ tab > ‘Status’, I see:
      Last scheduled optimization was at?13 June 2024 23:11
      Scheduled cleaning?enabled?Next schedule:?14 June 2024 23:05
      Success…so far. I’ll keep an eye on it.

      One more thing, I don’t use the Images/Cache/Minify options in your plugin as I use LiteSpeed, so obviously I have those three toggled off.
      I was still getting an annoying message in WP Admin though (I can’t remember whether it was from your side or from LiteSpeed), telling me that I shouldn’t use more than one plugin for caching so I paused wpo_purge_old_cache?and the message has stopped appearing.
      Is it safe to do that?

      Plugin Support vupdraft

      (@vupdraft)

      I activated w3 total cache and litespeed cache and got the warning so it does look like its the litespeed plugin that is causing this.

      They should be able to give you a hook too hide this.

      Thread Starter jasperdemann

      (@jasperdemann)

      Okay, thanks.

    Viewing 4 replies - 1 through 4 (of 4 total)
    • The topic ‘Scheduled Optimisation Not Working’ is closed to new replies.