@@ 606-610 (lines=5) @@ | ||
603 | $args = apply_filters( 'give_get_earnings_by_date_args', $args ); |
|
604 | $key = Give_Cache::get_key( 'give_stats', $args ); |
|
605 | ||
606 | if ( ! empty( $_GET['_wpnonce'] ) && wp_verify_nonce( $_GET['_wpnonce'], 'give-refresh-reports' ) ) { |
|
607 | $earnings = false; |
|
608 | } else { |
|
609 | $earnings = Give_Cache::get( $key ); |
|
610 | } |
|
611 | ||
612 | if ( false === $earnings ) { |
|
613 | $donations = get_posts( $args ); |
|
@@ 695-699 (lines=5) @@ | ||
692 | ||
693 | $key = Give_Cache::get_key( 'give_stats', $args ); |
|
694 | ||
695 | if ( ! empty( $_GET['_wpnonce'] ) && wp_verify_nonce( $_GET['_wpnonce'], 'give-refresh-reports' ) ) { |
|
696 | $count = false; |
|
697 | } else { |
|
698 | $count = Give_Cache::get( $key ); |
|
699 | } |
|
700 | ||
701 | if ( false === $count ) { |
|
702 | $donations = new WP_Query( $args ); |