Making WordPress.org


Ignore:
Timestamp:
03/22/2019 05:33:27 PM (7 years ago)
Author:
iandunn
Message:

WordCamp Payments Network: Restore temporarily disabled cron jobs.

This reverts r8486. It turns out this was tangentially related, and the primary cause for the downtime was an issue with api.bruteprotect.com.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/sponsor-invoices-dashboard.php

    r8486 r8493  
    1313
    1414} elseif ( defined( 'DOING_CRON' ) ) {
    15 //  add_action( 'wcbdsi_check_for_paid_invoices', __NAMESPACE__ . '\check_for_paid_invoices'       );
     15    add_action( 'wcbdsi_check_for_paid_invoices', __NAMESPACE__ . '\check_for_paid_invoices'       );
    1616    add_action( 'save_post',                      __NAMESPACE__ . '\update_index_row',       10, 2 );
    17 //  add_action( 'plugins_loaded',                 __NAMESPACE__ . '\schedule_sent_invoice_reminder' );
     17    add_action( 'plugins_loaded',                 __NAMESPACE__ . '\schedule_sent_invoice_reminder' );
    1818
    1919} elseif ( is_network_admin() ) {
    20 //  add_action( 'plugins_loaded',        __NAMESPACE__ . '\schedule_cron_events'  );
     20    add_action( 'plugins_loaded',        __NAMESPACE__ . '\schedule_cron_events'  );
    2121    add_action( 'network_admin_menu',    __NAMESPACE__ . '\register_submenu_page' );
    2222    add_action( 'init',                  __NAMESPACE__ . '\upgrade_database'      );
     
    3737    }
    3838
    39 //  wp_schedule_event( current_time( 'timestamp' ), 'hourly', 'wcbdsi_check_for_paid_invoices' );
     39    wp_schedule_event( current_time( 'timestamp' ), 'hourly', 'wcbdsi_check_for_paid_invoices' );
    4040}
    4141
Note: See TracChangeset for help on using the changeset viewer.