Making WordPress.org

Changeset 8486


Ignore:
Timestamp:
03/21/2019 09:50:55 PM (6 years ago)
Author:
iandunn
Message:

WordCamp Payments Network: Temporarily disable cron jobs for debugging.

See https://wordpress.slack.com/archives/G02QCEMRY/p1553203553063500.

Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes
Files:
3 edited

Legend:

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

    r6106 r8486  
    1212
    1313        // Schedule the aggregate event only on the main blog in the network.
    14         if ( get_current_blog_id() == $current_site->blog_id && ! wp_next_scheduled( 'wordcamp_payments_aggregate' ) )
    15             wp_schedule_event( time(), 'hourly', 'wordcamp_payments_aggregate' );
    16 
    17         add_action( 'wordcamp_payments_aggregate', array( __CLASS__, 'aggregate' ) );
     14//      if ( get_current_blog_id() == $current_site->blog_id && ! wp_next_scheduled( 'wordcamp_payments_aggregate' ) ) {
     15//          wp_schedule_event( time(), 'hourly', 'wordcamp_payments_aggregate' );
     16
     17//      add_action( 'wordcamp_payments_aggregate', array( __CLASS__, 'aggregate' ) );
    1818        add_action( 'network_admin_menu', array( __CLASS__, 'network_admin_menu' ) );
    1919        add_action( 'init', array( __CLASS__, 'upgrade' ) );
     
    2323        add_action( 'delete_post', array( __CLASS__, 'delete_post' ) );
    2424
    25         if ( ! empty( $_GET['wcp-debug-network'] ) && current_user_can( 'manage_network' ) )
    26             add_action( 'admin_init', function() { do_action( 'wordcamp_payments_aggregate' ); }, 99 );
     25//      if ( ! empty( $_GET['wcp-debug-network'] ) && current_user_can( 'manage_network' ) )
     26//          add_action( 'admin_init', function() { do_action( 'wordcamp_payments_aggregate' ); }, 99 );
    2727    }
    2828
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/sponsor-invoices-dashboard.php

    r8329 r8486  
    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
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/wordcamp-budgets-dashboard.php

    r8330 r8486  
    2828add_action( 'admin_init', __NAMESPACE__ . '\process_import_request', 11 );
    2929
    30 add_action( REDACT_PAID_REQUESTS_CRON_ID, __NAMESPACE__ . '\redact_paid_requests' );
     30//add_action( REDACT_PAID_REQUESTS_CRON_ID, __NAMESPACE__ . '\redact_paid_requests' );
    3131
    3232if ( ! wp_next_scheduled( REDACT_PAID_REQUESTS_CRON_ID ) ) {
    33     wp_schedule_event( time(), 'twicedaily', REDACT_PAID_REQUESTS_CRON_ID );
     33//  wp_schedule_event( time(), 'twicedaily', REDACT_PAID_REQUESTS_CRON_ID );
    3434}
    3535
Note: See TracChangeset for help on using the changeset viewer.