You appear to be a bot. Output may be restricted
Description
Is the date range cachable
Usage
$boolean = EDD_Payment_Stats::is_cacheable( $date_range );
Parameters
- $date_range
- ( mixed ) optional –
Returns
boolean Whether the date range is allowed to be cached or not
Source
File name: easy-digital-downloads/includes/payments/class-payment-stats.php
Lines:
1 to 18 of 18
public function is_cacheable( $date_range = "" ) { if ( empty( $date_range ) ) { return false; } $cacheable_ranges = array( 'today', 'yesterday', 'this_week', 'last_week', 'this_month', 'last_month', 'this_quarter', 'last_quarter' ); return in_array( $date_range, $cacheable_ranges ); }