Skip to content

ScriptV2: Self hosted tracker script cache #5502

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

Merged
merged 3 commits into from
Jun 20, 2025

Conversation

macobo
Copy link
Contributor

@macobo macobo commented Jun 16, 2025

This PR leverages Plausible.Cache to provide a cached script delivery mechanism on self-hosted.

macobo added 3 commits June 16, 2025 11:38
Open questions with this approach:
- `ingestion_url`: Using `PlausibleWeb.Endpoint.url()` requires that endpoint has started, but we
  want to pre-warm the cache _before_ the endpoint starts. To work around this, a different approach
  is used to get the right url.
- caching: Other caches currently cache database models, this caches a string. Will this cause issues?
@macobo macobo requested review from ukutaht, apata and RobertJoonas June 16, 2025 08:57
Copy link
Contributor

@RobertJoonas RobertJoonas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@macobo macobo added this pull request to the merge queue Jun 20, 2025
Merged via the queue into master with commit 6ade93b Jun 20, 2025
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.

2 participants