• Resolved mose77

    (@mo7se7)


    Hello my good friend – I hope you are well

    I use shared hosting and my hosting Support has suggested to me that it is better not to run WP-Cron Job according to each user’s login

    And it is better to be limited to execution (direct admin)

    And for example, run once every 5 minutes (or 1 minutes) (direct admin)

    what is your opinion? is Problems with your good plugin?

    For example, in awarding a certificate or opening lessons (with a time delay like 1 day)

    Thank You

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @mo7se7

    These actions are, by default, handled by wp-cron.php which is an imprecise cron alternative in the WordPress core. This alternative makes requests on every page load in order to trigger scheduled actions. This means that if your site doesn’t receive any visitors for a period of time, scheduled actions may be missed.

    We recommend using a real cron job via crontab on your server or by using a third-party cron service to make regular requests to wp-cron.php.

    There is more information in our documentation here: https://lifterlms.com/docs/better-cron-setup/#cron-service

    Let us know if you have any further questions!

    Best,

    Thread Starter mose77

    (@mo7se7)

    Hello my good friend, thank you for your complete explanation and answer

    1- I was going to put a one minute delay according to the article below

    According to CPanel

    https://fluentcrm.com/docs/replace-wordpress-cron-with-a-real-cron-job/#cpanel

    And I wanted the execution to be delayed accordingly

    Do you think there is a problem? Because I did not fully understand your answer

    What do you think about this delay according to the article above?

    2- I want the kroner to run but to be delayed according to cpanel

    Aren’t scheduled appointments done in the presence of users?

    Hi @mo7se7

    Yes, scheduled actions are triggered on every page load. So, if there are no users loading pages the trigger doesn’t happen.

    Seeing delays and automatic triggers on 10-minute intervals would probably be best to not overwhelm your shared hosting. 1 Minute is fine as well, but again with shared hosting you don’t have a server dedicated to just your site so it may cause a bottleneck.

    Let us know if you have any further questions!

    All the best,

    Thread Starter mose77

    (@mo7se7)

    My good friend, so your opinion is on 10 minutes?

    Several people made different offers to me – from 1 to 5 to your offer for 10 minutes

    So in general, if there is a time delay according to the article I sent, will there be no problem? (I mean in general that is not a problem? Of course, one percent is possible everywhere)

    Do you think doing this is good and prevents the website from getting heavy and slowing down?

    • This reply was modified 2 years, 11 months ago by mose77.
    • This reply was modified 2 years, 11 months ago by mose77.
    • This reply was modified 2 years, 11 months ago by mose77.

    Hi @mo7se7

    The time intervals are entirely up to you! I recommend a longer delay just because you mentioned being on shared hosting, but if your host says they can handle smaller intervals 1-5 is fine as well!

    In general it will not cause a problem, and will help your scheduled actions run without the need of users being active on your site!

    Let us know if you have any further questions!

    All the best,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP-Cron’ is closed to new replies.