Support » Plugin: Missed Schedule Fix WP Failed Future Posts » wpms_init runs on every page load

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor sLa Team

    (@slangji)

    What is your solution (that work with WordPress 2.5+ to 3.9+) ?

    This issue was inserted as Ticket #5338146 on to Todo List for Future Development.

    Thanks to baldgoat and all others users was send me same solution via Contact form …

    If are satisfied of this plugin, please, consider one small Donation for my free work. 🙂

    Honestly, I disabled the plugin. My real problem wasn’t isolated to scheduled posts not publishing. None of my wp-cron tasks were running. Turned out to be an issue with the W3 Total cache object cache. Once I disabled that, my crons started running, including the scheduled posts.

    However, looking at your code. you have a function ‘wpms_option’. Instead of making that a separate function, you should integrate that into the wpms_init function.

    Wrap the current contents of wpms_init in an ‘if’ statement. Check to see if 5 minutes have passed since the the last run. If 5 minutes has passed, run the query and publish the missed schedule posts, then – still inside the if block – update the wpms_option value with the current time();

    Plugin Contributor sLa Team

    (@slangji)

    Please: you can write a few lines of code? 🙂

    I will be happy to test your code in the development version

    Thank you!

    P.S. W3 Total Cache “object cache” is problematic … try Tribe Object Cache 😉

    Plugin Contributor sLa Team

    (@slangji)

    add_action( 'init', 'wpms_init', 0 );

    That line causes the init function to run on every page load.
    So, the query executes each time.

    Try WP Missed Schedule 2014 with new cron checking interval coding … 😉

    Plugin Contributor sLa Team

    (@slangji)

    baldgoat wrote:

    Wrap the current contents of wpms_init in an ‘if’ statement. Check to see if 5 minutes have passed since the the last run. If 5 minutes has passed, run the query and publish the missed schedule posts, then – still inside the if block – update the wpms_option value with the current time();

    Please: you can write, or send me, a few lines of this modified code ? 🙂

    Plugin Contributor sLa Team

    (@slangji)

    … request is legitimate answer is courtesy!

    Plugin Contributor sLa Team

    (@slangji)

    I’m working on it on new coming soon 2014 developmental version 1111 😉

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘wpms_init runs on every page load’ is closed to new replies.