@@ -79,7 +79,7 @@ public function dump(string $dumper) : Collection
79
79
80
80
public function geocodeQuery (GeocodeQuery $ query ) : self
81
81
{
82
- $ cacheKey = serialize ($ query );
82
+ $ cacheKey = md5 ( serialize ($ query) );
83
83
$ this ->results = app ('cache ' )->store (config ('geocoder.cache.store ' , null ))->remember (
84
84
"geocoder- {$ cacheKey }" ,
85
85
config ('geocoder.cache.duration ' , 0 ),
@@ -95,7 +95,7 @@ function () use ($query) {
95
95
96
96
public function reverseQuery (ReverseQuery $ query ) : self
97
97
{
98
- $ cacheKey = serialize ($ query );
98
+ $ cacheKey = md5 ( serialize ($ query) );
99
99
$ this ->results = app ('cache ' )->store (config ('geocoder.cache.store ' , null ))->remember (
100
100
"geocoder- {$ cacheKey }" ,
101
101
config ('geocoder.cache.duration ' , 0 ),
@@ -116,7 +116,7 @@ public function getName() : string
116
116
117
117
public function geocode (string $ value ) : self
118
118
{
119
- $ cacheKey = str_slug (strtolower (urlencode ($ value )));
119
+ $ cacheKey = md5 ( str_slug (strtolower (urlencode ($ value) )));
120
120
$ this ->results = app ('cache ' )->store (config ('geocoder.cache.store ' , null ))->remember (
121
121
"geocoder- {$ cacheKey }" ,
122
122
config ('geocoder.cache.duration ' , 0 ),
@@ -132,7 +132,7 @@ function () use ($value) {
132
132
133
133
public function reverse (float $ latitude , float $ longitude ) : self
134
134
{
135
- $ cacheKey = str_slug (strtolower (urlencode ("{$ latitude }- {$ longitude }" )));
135
+ $ cacheKey = md5 ( str_slug (strtolower (urlencode ("{$ latitude }- {$ longitude }" ) )));
136
136
$ this ->results = app ('cache ' )->store (config ('geocoder.cache.store ' , null ))->remember (
137
137
"geocoder- {$ cacheKey }" ,
138
138
config ('geocoder.cache.duration ' , 0 ),
0 commit comments