rename cache key
This commit is contained in:
parent
caaa716939
commit
0c0f8623e1
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue