Created on 5 December 2023, 7 months ago
Updated 8 December 2023, 7 months ago

Problem/Motivation

Results from geocoders are cached. The cache does not take into account the language.

Steps to reproduce

With a geocoder with results for different languages search and the interface language set to "Santa Maria del Fiore" (Florence). The result will be cached with the city as Florence. Now switch to Italian (or German as there is also a localised city name for that) and search the result will still return Florence, rather than Fiore.

Proposed resolution

Add a the locale to the cache key. Or maybe better switch to using Guzzle middleware https://github.com/geocoder-php/Geocoder/blob/master/docs/cookbook/cache.md middleware can also do rate limiting.

Remaining tasks

Make one of the changes. As mentioned I'd be happy to spend a bit of time.

✨ Feature request
Status

Fixed

Version

4.0

Component

Code

Created by

🇳🇱Netherlands ekes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024