From ccf5e61a075c35d24befc175994b5cb8957ca322 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 26 Aug 2026 21:45:53 +0000
Subject: [PATCH] =Extra JVB() calls replaced, minor tweaks
---
inc/integrations/services/GoogleMapsOld.php | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/inc/integrations/services/GoogleMapsOld.php b/inc/integrations/services/GoogleMapsOld.php
index aebaf87..0f87b97 100644
--- a/inc/integrations/services/GoogleMapsOld.php
+++ b/inc/integrations/services/GoogleMapsOld.php
@@ -202,7 +202,7 @@
'key' => $this->private_key
];
- $key = $this->cache->generateKey(['geocode', $address]);
+ $key =['geocode', $address];
$cached = $this->cache->get($key);
if ($cached) {
return $cached;
@@ -256,7 +256,7 @@
'key' => $this->private_key
];
- $key = $this->cache->generateKey(['reverse', $lat, $lng]);
+ $key = ['reverse', $lat, $lng];
$cached = $this->cache->get($key);
if ($cached) {
return $cached;
@@ -302,7 +302,7 @@
$default_fields = ['name', 'formatted_address', 'geometry', 'rating', 'formatted_phone_number'];
$fields = empty($fields) ? $default_fields : $fields;
- $key = $this->cache->generateKey(['place', $place_id, $fields]);
+ $key = ['place', $place_id, $fields];
$cached = $this->cache->get($key);
if ($cached) {
return $cached;
@@ -355,7 +355,7 @@
$params['type'] = $type;
}
- $key = $this->cache->generateKey(['nearby', $lat, $lng, $radius, $type]);
+ $key = ['nearby', $lat, $lng, $radius, $type];
$cached = $this->cache->get($key);
if ($cached) {
return $cached;
@@ -406,7 +406,7 @@
'key' => $this->private_key
];
- $key = $this->cache->generateKey(['distance', $origin_str, $dest_str, $mode]);
+ $key = ['distance', $origin_str, $dest_str, $mode];
$cached = $this->cache->get($key);
if ($cached) {
return $cached;
--
Gitblit v1.10.0