Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find alternate solutions when define('ALTERNATE_WP_CRON', true) is needed #26

Closed
libreliodev opened this issue Apr 6, 2015 · 2 comments

Comments

@libreliodev
Copy link
Owner

As discussed in #20, it is sometimes needed to use define('ALTERNATE_WP_CRON', true) . This does not seem to be a good practice, as some users will have long response times.

@serverfire Would it be possible to make an http request avery 5 minutes or so from another site to replace this method? What would be the URL to use?

@AlirezaAlgo
Copy link
Collaborator

@libreliodev

Would it be possible to make an http request avery 5 minutes or so from another site to replace this method?

Yes.
Guide is right here. http://code.tutsplus.com/articles/insights-into-wp-cron-an-introduction-to-scheduling-tasks-in-wordpress--wp-23119

  1. Disable internal WP-Cron to execute on page load.
  2. Setup a cron function that makes a get request to the wp-cron.php file at regular intervals based on your preference.

What would be the URL to use?

http://www.yourwebsite.com/wp-cron.php?doing_wp_cron=1

@libreliodev
Copy link
Owner Author

@serverfire FYI, the client has now disabled define('ALTERNATE_WP_CRON', true), but we have not yet implemented this alternate method;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants