Skip to content

Fix home metrics showing global stats on slice - #77

Merged
hakimalem merged 1 commit into
masterfrom
fix/slice-home-metrics
Jul 8, 2026
Merged

Fix home metrics showing global stats on slice#77
hakimalem merged 1 commit into
masterfrom
fix/slice-home-metrics

Conversation

@hakimalem

Copy link
Copy Markdown
Member

On slice subdomains (e.g. dataterra.earthportal.eu), the "in figures"
block showed the whole portal's stats instead of the slice's.

Cause: the analytics used to compute the metrics were cached under a
global key (ontologies_analytics-YYYY-MM), shared between the main
portal and every slice.

Fix: include the slice acronym in the cache key, so each slice (and the
main portal) gets its own slice-filtered analytics.

@hakimalem
hakimalem merged commit 8637006 into master Jul 8, 2026
2 of 8 checks passed
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

Successfully merging this pull request may close these issues.

1 participant