Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache keys not unique #36

Open
conmar5 opened this issue Dec 27, 2024 · 0 comments
Open

Cache keys not unique #36

conmar5 opened this issue Dec 27, 2024 · 0 comments

Comments

@conmar5
Copy link

conmar5 commented Dec 27, 2024

The cache keys do not appear to be unique. The keys are constructed from req.params.host and req.params.id however the key will be identical for each query.

// Make key for the cached tile layer
    const key = Utils.getTileSetKey(req.params.host, req.params.id)

However req.params is like so host is not included is undefined and id will be the same for all requests
req.params { id: 'public.tablename', z: '14', x: '7832', y: '5307' }

, resulting in key 'public.tablename' rather than a key for each table and zxy parameter combination

This results in a single cache item for the first request made which then gets called for all other requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant