Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter streifi89

    (@streifi89)

    Plugin Author Lester Chan

    (@gamerz)

    Probably check if the cron is running via using a plugin like WP-Crontrol.

    You probably can do a error_log() debugging in cron_polls_status() as well https://github.com/lesterchan/wp-polls/blob/master/wp-polls.php#L1243-L1253

    Thread Starter streifi89

    (@streifi89)

    Hey Lester,

    Thanx for the Update. The cron was 2 Times per day every 12 hours. That can’t work proberly Oo.

    I’ll start debugging the expired polls tomorrow.

    Plugin Author Lester Chan

    (@gamerz)

    Thanks! Keep me updated!

    Thread Starter streifi89

    (@streifi89)

    Cron was set back to every 12 hours. This is not the best way, to open/close polls automatically. Maybe you will rewrite your plugin not to check the open or close poll date in the database, rather make for each open / close date an own cron entry like wordpress does for each planned post in the future?

    Furthermore it is maybe a good idea, to let the user decide, how often the cron checks (hourly, twicedaily, and so on).

    Debug is on for tomorrow, when the poll closes.

    Plugin Author Lester Chan

    (@gamerz)

    I thought of that but that will increase 1 database query per page load. I rather do it on the cron way, maybe make the cron shorter like an hourly instead of twice daily.

    You are probably the first guy in a decade (literally 10 years) that needs more than twice daily. lol

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Timer to automatically open/close polls does not work’ is closed to new replies.