Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter sbthemes

    (@sbthemes)

    Yes site I am working on has huge traffic, I am recreating new as current site has traffic but not easily scaleable, so keeping all these things in mind.

    Thank you for your input and help in this.

    • This reply was modified 5 years, 10 months ago by sbthemes.
    Thread Starter sbthemes

    (@sbthemes)

    I don’t know if I can rely on this method.

    I already know this method but WooCommerce support says scheduler doesn’t depend on WP Cron any more so I don’t know if this method is even reliable.

    I am more confused actually, as sometimes support says its doesn’t use WP Cron, sometime says it using.

    I am sharing below what I did now.

    https://actionscheduler.org/wp-cli/

    As per this documentation I used this below plugin to disable scheduler.
    Plugin Link : https://github.com/woocommerce/action-scheduler-disable-default-runner

    And now I am running WP CLI command action-scheduler run every single minute and I think it’s working perfectly.

    I also disabled WP Cron and calling it manually every minute.

    I don’t know if this is how I should do it but in short what I did is I disabled WP Cron and Action Scheduler and now I am calling both methods manually every minute.

    Let me know if this method has any disadvantage. As all working good in my test, I don’t know if calling action-scheduler run every minute will eat lot of memory or it will just process pending jobs and closes connection (freed memory)?

    • This reply was modified 5 years, 10 months ago by sbthemes.
    • This reply was modified 5 years, 10 months ago by sbthemes.
    • This reply was modified 5 years, 10 months ago by sbthemes.
    Thread Starter sbthemes

    (@sbthemes)

    The new action scheduler actually initiates the “queue” of actions when the admin user logs in. Once the queue has been started, all the actions within the queue would run even if the admin user doesn’t log in to the site.

    I already read this from article and understood it but my question was let say there are 10 tasks in schedule and admin logged in so all 10 processed.

    Now admin keep account logged in for whole day and new 20 tasks added to schedule? How this will work? It will still process as user not logging in again as he is already logged in.

    Also this mean it’s not reliable as if admin doesn’t login, cron jobs will be delayed right?

    What I want to achieve is I want to disable auto processing and may be I can run every minute to ensure it always fires on time and don’t wait for admin to login or user traffic, is it possible?

    • This reply was modified 5 years, 10 months ago by sbthemes.
    Thread Starter sbthemes

    (@sbthemes)

    Ok I get it now, I am confused with one thing though.

    WP Cron relies on website traffic which I don’t like and thats why I decided to disable default cron and wanted to handle it manually with real cron service.

    In the article link you sent, it says…

    The async queue runner initiates action processing when an admin user logs into the WordPress administration dashboard.

    Does this mean action scheduler depends on admin user login? Like only process when admin user login or refresh page on admin side?

    How can I be sure that cron is not dependent on such unreliable actions and run instantly? Like if admin doesn’t login for whole day means some important cron jobs gets delayed.

    Is there any way so I can run this manually every minute or 5 minutes to ensure it doesn’t depends on traffic or user input but its automatic?

    Thanks

    Thread Starter sbthemes

    (@sbthemes)

    Ok, got it.

    I know github master branch is latest and I checked there. Code reference is very easy to search and look.

    Would be good to have code reference up to date.

    Anyway thanks for clarification.

    • This reply was modified 5 years, 10 months ago by sbthemes.
    • This reply was modified 5 years, 10 months ago by sbthemes.
    Thread Starter sbthemes

    (@sbthemes)

    Thanks 🙂

    Thread Starter sbthemes

    (@sbthemes)

    Well, I tried that filter which gives only query as string so need to hack it with some string replace function or with regular expression to change query string which is not good at all.

    And excerpt is also used in default wordpress query but overwrite by this plugin.

    I also checked its just 5 to 6 lines of code to add it so for now I hacked code.

    but would be good to have it in plugin core.

    Thanks 🙂

    • This reply was modified 8 years, 1 month ago by sbthemes.
    Thread Starter sbthemes

    (@sbthemes)

    Sorry but I am not using this anymore.

    it took more than 72 hours to contact back and with same document links which I alrady mentioned that I tried but not working.

    There is really no way to reach support.

Viewing 8 replies - 1 through 8 (of 8 total)