| @@ 97-102 (lines=6) @@ | ||
| 94 | $orderMD5 = md5($post['orderBy']); |
|
| 95 | $redisKey .= "/order{$orderMD5}"; |
|
| 96 | } |
|
| 97 | if (! empty($post['limit'])) { |
|
| 98 | // Enforce a max limit |
|
| 99 | if ($post['limit'] > 50) { |
|
| 100 | $post['limit'] = 50; |
|
| 101 | } |
|
| 102 | } |
|
| 103 | ||
| 104 | if (empty($post['limit']) || ! isset($post['limit'])) { |
|
| 105 | $post['limit'] = 10; |
|
| @@ 104-106 (lines=3) @@ | ||
| 101 | } |
|
| 102 | } |
|
| 103 | ||
| 104 | if (empty($post['limit']) || ! isset($post['limit'])) { |
|
| 105 | $post['limit'] = 10; |
|
| 106 | } |
|
| 107 | ||
| 108 | $redisKey .= "/limit{$post['limit']}"; |
|
| 109 | ||
| @@ 135-137 (lines=3) @@ | ||
| 132 | $return['orderBy'] = json_decode($post['orderBy'], true); |
|
| 133 | } |
|
| 134 | ||
| 135 | if (empty($post['limit']) || ! isset($post['limit'])) { |
|
| 136 | $post['limit'] = 10; |
|
| 137 | } |
|
| 138 | ||
| 139 | if ($post['limit'] > 50) { |
|
| 140 | $post['limit'] = 50; |
|