Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author gesman

    (@gesman)

    I will update instructions sometime.
    But for now you may do this:

    1. Disable soft cron from Plugin settings.
      You’d have to deactivate and then reactivate plugin for this to take effect.
    2. Add this URL to your cron job (replace it with your domain of course):
      https://example.com/wp-content/plugins/bitcoin-payments-for-woocommerce/bwwc-cron.php?hardcron=1
    3. Note: you may precede it with your favourite way of running PHP scripts, such as: wget -O /dev/null https://example.com/...
    4. Make it run every 2.5 – 5 minutes or so
    5. NOTE: plugin cashes requests to blockchain services so that requests for bitcoin address balances will not be issued more often than once in 10 minutes. So even if you execute cron job every 30 seconds – it will not detect new payment right away. This is to prevent yourself from being blocked away by blockchain services for overloading their servers.

    Gleb

    Thread Starter maxmint

    (@maxmint)

    Ok, will try that. Thanks for the quick reply!

    When i use the ?hardcron=1 extensioon in my cron job it fails. Do i need to use that?

    The outcome without that is:

    Set-Cookie: wc_session_cookie_f07d395a012e38e2688ade8a6f5effad=XLduOnSYwRbbV2zNxM72uhKhx9bWQjhI%7C%7C1375875302%7C%7C1375871702%7C%7C04f9f27658ae5dbb2e23f267bb7fb9f4; expires=Wed, 07-Aug-2013 11:35:02 GMT; path=/v2/; httponly
    Set-Cookie: woocommerce_items_in_cart=0; expires=Mon, 05-Aug-2013 10:35:02 GMT; path=/v2/
    Set-Cookie: woocommerce_cart_hash=0; expires=Mon, 05-Aug-2013 10:35:02 GMT; path=/v2/
    X-Pingback: https://www.domain.com/v2/xmlrpc.php
    Content-Type: text/html; charset=UTF-8
    Status: 200 OK

    Is this ok?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Switching to "hard" cron jobs’ is closed to new replies.