• tyf2000

    (@tyf2000)


    Hi there!

    Just trying to configurate the plugin for republishing all posts when older than 7 days (example: Original post from Monday, 1st January 0:01 a.m. -> shall be reposted one week later, Monday, 8th January 0:01 a.m. … all posts on tuesday shall be reposted the next tuesday and so on…)

    So for testing I use these settings:

    Auto Post Schedule: 60 seconds (just to see results within a minute)
    Minimum Recycle Age: 7 days

    So this should be reposting all posts which are older than 7 days, right?

    But when APS is active every 60 seconds the posts are republished (even they are in fact only 60 seconds old).

    What I am doing wrong here? ??

    Thanks and Regards
    TYF

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter tyf2000

    (@tyf2000)

    Update:

    I guess I have it now! ??

    Deactivating Eligible Post Statuses: Publish
    Activating Recycle Posts Mode

    Now it’s working like I want!

    Plugin Author johnh10

    (@johnh10)

    You got it. ??

    Thread Starter tyf2000

    (@tyf2000)

    Update II ??

    So yesterday I configurated, that APS shall check “Tuesdays 0000-0100”

    But APS did nothing at this time. The first check was today around 0538 with the message that its not in the allowed time range..

    The above settings are still like they were. An idea whats wrong?

    Thanks and Regards

    TYF

    Thread Starter tyf2000

    (@tyf2000)

    Double checked now. So I have still setting that APS is checking every 60 seconds. But it seems that APS is only do this, when I am logged in to the WordPress backend…

    Even APS should check at 07:54:48 he did it only at 09:44:46 (just now, when I logged in to WP)

    “2023-11-07 07:54:19 – DEBUG: wp_next_scheduled for 2023-11-07 07:54:48 Europe/Berlin.
    2023-11-07 09:44:46 – DEBUG: aps_auto_post_hook triggered, looking for eligible posts…”

    Thats not the meaning of “checking every 60 seconds” right? ??

    • This reply was modified 1 year ago by tyf2000.
    Plugin Author johnh10

    (@johnh10)

    >The above settings are still like they were. An idea whats wrong?

    Nothing is wrong. Cron triggered APS and APS saw it wasn’t Tuesday between 0000 and 0100 and so did nothing, as you wanted.

    >But it seems that APS is only do this, when I am logged in to the WordPress backend…

    APS is only called via a cron event. By default, WordPress only checks for cron events during page loads. If someone doesn’t load a page until after the APS event time, then that is when cron will trigger APS to check your rules. If you’re the only one loading pages, then it would appear as you’ve stated.

    Thread Starter tyf2000

    (@tyf2000)

    Ok thanks! Understood now ??

    Was just a bit curious because the system said “wp_next_scheduled for 2023-11-07 07:54:48” and APS did nothing at this time.

    I guess I can work now with APS and you truly deserve the “Instant Karma” ??

    Plugin Author johnh10

    (@johnh10)

    Sorry, but yes cron can be a bit confusing. Even though the event is scheduled for a certain time, APS won’t be triggered by cron until cron checks for events on or after the scheduled time. In WordPress, this generally happens on the page load after the scheduled time has passed, however long that takes. If you need absolute timing, you can drop WordPress cron for a proper server cron job (use a Google search). Those will always trigger at the frequency you configure (such as check cron every minute).

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘APS is reposting every 60 sec.’ is closed to new replies.