Maybe fix cache keys

This commit is contained in:
Skylar Ittner 2025-05-30 12:49:41 -06:00
parent 15c5b02a7e
commit 030b2fb1c0

View File

@ -6,7 +6,7 @@
* 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);
if ($cacheresp !== false && empty($VARS["nocache"])) {
exitWithJson(json_decode($cacheresp, true));