| @@ 37-42 (lines=6) @@ | ||
| 34 | $orderMD5 = md5($post['orderBy']); |
|
| 35 | $redisKey .= "/{$orderMD5}"; |
|
| 36 | } |
|
| 37 | if (! empty($post['limit'])) { |
|
| 38 | // Enforce a max limit |
|
| 39 | if ($post['limit'] > 50) { |
|
| 40 | $post['limit'] = 50; |
|
| 41 | } |
|
| 42 | } |
|
| 43 | ||
| 44 | if (empty($post['limit']) || ! isset($post['limit'])) { |
|
| 45 | $post['limit'] = 10; |
|
| @@ 44-46 (lines=3) @@ | ||
| 41 | } |
|
| 42 | } |
|
| 43 | ||
| 44 | if (empty($post['limit']) || ! isset($post['limit'])) { |
|
| 45 | $post['limit'] = 10; |
|
| 46 | } |
|
| 47 | ||
| 48 | $redisKey .= "/{$post['limit']}"; |
|
| 49 | ||
| @@ 63-65 (lines=3) @@ | ||
| 60 | $return['orderBy'] = json_decode($post['orderBy'], true); |
|
| 61 | } |
|
| 62 | ||
| 63 | if (empty($post['limit']) || ! isset($post['limit'])) { |
|
| 64 | $post['limit'] = 10; |
|
| 65 | } |
|
| 66 | ||
| 67 | if ($post['limit'] > 50) { |
|
| 68 | $post['limit'] = 50; |
|