• Resolved drucken25

    (@drucken25)


    Hi Tobias,

    I changed the time interval for the auto import to 3 minutes in class TablePress_Table_Auto_Update in public static function cron_add_quarterhourly:

    ‘interval’ => 3 * MINUTE_IN_SECONDS,

    However, updates still happen around 11 minutes or so. I have no users on the site. In an older post I read that the interval timer is triggered only when someone accesses a page on the site, so I browsed through the pages for a while, but that didn’t change anything (also tried it after clearing the browser cache).

    Danke,
    Gerhard

    https://wordpress.org/plugins/tablepress/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi Gerhard,

    thanks for your question, and sorry for the trouble.

    Without users on the site, this will not work. Just yourself surfing on the site is not enough here, as you are logged-in into WordPress.

    Now, what exactly are you trying to do here? Why do you need an interval of only 3 minutes?

    Regards,
    Tobias

    Thread Starter drucken25

    (@drucken25)

    Hi Tobias,

    on my PC I generate a table with new data every 3 minutes and FTP it over to a server at goDaddy; there your table plugin reads it and I display the table on my website.

    I guess I could have someone else view my website while I monitor whether the auto-update is done.

    What do you think?
    Thanks much,
    Gerhard

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Gerhard,

    ah, ok. Thanks for the explanation.

    Yes, someone else (preferably not logged-in) surfing your site from another computer should work to be able to see the auto import in action.

    As a side note: Each auto import will create a revision/copy of the table in the database, which can lead to the database growing quickly. I therefore recommend to set a limit on the stored post revisions, e.g. 10, with the help of http://codex.wordpress.org/Editing_wp-config.php#Post_Revisions

    Regards,
    Tobias

    Thread Starter drucken25

    (@drucken25)

    Tobias,

    I set the auto-import interval to 1 minute and had a friend browse the website, occasionally clearing his browser cache.
    No matter how I set the interval (1 or 3 minutes), or whether someone else browses the site or not, the import happens every 11 minutes.

    Thanks for the tip re post revisions – I disabled it.

    Thanks,
    Gerhard

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Gerhard,

    hhm, that’s strange. Unfortunately, I don’t really know why this is happening on your site. One possibility could be a 10 minute limit that WordPress employs for those cron jobs. See this line of code for reference.

    Regards,
    Tobias

    Thread Starter drucken25

    (@drucken25)

    Hi Tobias,

    turned out you are absolutely right: in the goDaddy managed wordpress environment wp-crons are rate limited to run no more than once every ten minutes for performance reasons, this is not something that can me modified.

    Best,
    Gerhard

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Gerhard,

    very interesting find! Thanks for investigating this further with GoDaddy!
    I’ll definitely keep this in mind if this issue pops up again in the future!

    Best wishes,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘changing time interval for auto update’ is closed to new replies.