Maybe fix cache keys
This commit is contained in:
parent
15c5b02a7e
commit
030b2fb1c0
@ -6,7 +6,7 @@
|
|||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$hash = sha1($VARS["number"] ?? "" . "|" . ($VARS["unit"] ?? "") . "|" . $VARS["street"] . "|" . ($VARS["city"] ?? "") . "|" . ($VARS["state"] ?? "") . "|" . ($VARS["zip"] ?? ""));
|
$hash = sha1(($VARS["number"] ?? "") . "|" . ($VARS["unit"] ?? "") . "|" . ($VARS["street"] ?? ""). "|" . ($VARS["city"] ?? "") . "|" . ($VARS["state"] ?? "") . "|" . ($VARS["zip"] ?? ""));
|
||||||
$cacheresp = $memcache->get("logistics.uspsaddress." . $hash);
|
$cacheresp = $memcache->get("logistics.uspsaddress." . $hash);
|
||||||
if ($cacheresp !== false && empty($VARS["nocache"])) {
|
if ($cacheresp !== false && empty($VARS["nocache"])) {
|
||||||
exitWithJson(json_decode($cacheresp, true));
|
exitWithJson(json_decode($cacheresp, true));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user