Skip to content

Commit e50f6a7

Browse files
committed
Make metadata requests use the cached endpoint automatically
The overhead for the non-cached endpoint is substantial.
1 parent d01bd8e commit e50f6a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/client/delphi_epidata.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ Epidata <- (function() {
524524

525525
# Fetch Delphi's COVID-19 Surveillance Streams metadata
526526
covidcast_meta <- function() {
527-
return(.request(list(source='covidcast_meta')))
527+
return(.request(list(source='covidcast_meta', cached='true')))
528528
}
529529

530530
# Export the public methods

src/client/delphi_epidata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,4 +563,4 @@ def covidcast(data_source, signal, time_type, geo_type, time_values, geo_value):
563563
@staticmethod
564564
def covidcast_meta():
565565
"""Fetch Delphi's COVID-19 Surveillance Streams metadata"""
566-
return Epidata._request({'source': 'covidcast_meta'})
566+
return Epidata._request({'source': 'covidcast_meta', 'cached': 'true'})

0 commit comments

Comments
 (0)