SemanticMediaWiki / SemanticExternalQueryLookup

Seamlessly integrate query results from an external query source to a local repository
Other
9 stars 8 forks source link

Use CachedCurlRequest to limit http requests to an API endpoint #5

Closed mwjames closed 8 years ago

mwjames commented 8 years ago

Currently, HttpRequestFactory::newCurlRequest is used to handle requests to an API endpoint but it is fairly easy to replace it with HttpRequestFactory::newCachedCurlRequest and allow responses to be cached when executed repeatedly for a specified time frame.