Blocked claims #81

Merged
akinwale merged 8 commits from blocked-claims into master 2020-01-07 23:13:39 +01:00
Showing only changes of commit 0c0f8623e1 - Show all commits

View file

@ -1010,14 +1010,14 @@ class MainController extends AppController {
} }
private function _getBlockedList() { private function _getBlockedList() {
$cachedList = Cache::read('blockedList', 'api_requests'); $cachedList = Cache::read('list_blocked', 'api_requests');
if ($cachedList !== false) { if ($cachedList !== false) {
return $cachedList; return $cachedList;
} }
// get the result from the api // get the result from the api
$response = self::curl_get(self::blockedListUrl); $response = self::curl_get(self::blockedListUrl);
Cache::write('blockedList', $response, 'api_requests'); Cache::write('list_blocked', $response, 'api_requests');
return $response; return $response;
} }
} }