Code Duplication    Length = 3-5 lines in 2 locations

modules/stats.php 2 locations

@@ 1649-1651 (lines=3) @@
1646
	} while ( 0 );
1647
1648
	// Expire old keys.
1649
	foreach ( $stats_cache as $k => $cache ) {
1650
		if ( ! is_array( $cache ) || 300 < time() - key( $cache ) ) {
1651
			unset( $stats_cache[ $k ] );
1652
		}
1653
	}
1654
@@ 1766-1770 (lines=5) @@
1763
	}
1764
1765
	// Expire old keys.
1766
	foreach ( $stats_cache as $k => $cache ) {
1767
		if ( ! is_array( $cache ) || ( 5 * MINUTE_IN_SECONDS ) < time() - key( $cache ) ) {
1768
			unset( $stats_cache[ $k ] );
1769
		}
1770
	}
1771
1772
	// Set cache.
1773
	$stats_cache[ $cache_key ] = array(