Skip to content

Addons: add CDN-Tags to endpoint and auto-purge cache #10704

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 2 commits into from
Sep 5, 2023

Conversation

humitos
Copy link
Member

@humitos humitos commented Sep 4, 2023

It follows a similar approach than FooterHTML API by adding rtd-addons CDN tag and uses the same signals logic from readthedocs-ext to purge the cache on different events.

Closes #10694

It follows a similar approach than `FooterHTML` API by adding `rtd-addons` CDN
tag and uses the same signals logic from `readthedocs-ext` to purge the cache
on different events.

Closes #10694
@humitos humitos requested a review from a team as a code owner September 4, 2023 10:37
@humitos humitos requested a review from stsewd September 4, 2023 10:37
humitos added a commit that referenced this pull request Sep 4, 2023
* Define `_get_project` and `_get_version` as individual methods because these
  are required by the API permissions.
* Use `user=` attribute when performing the query for the versions to be
  displayed in the flyout.

Requires #10704
* Define `_get_project` and `_get_version` as individual methods because these
  are required by the API permissions.
* Use `user=` attribute when performing the query for the versions to be
  displayed in the flyout.

Requires #10704
@humitos
Copy link
Member Author

humitos commented Sep 5, 2023

I'm merging this since I want to deploy it today. @stsewd I'd appreciate your review here anyways. I can make the changes in a following PR if anything.

@humitos humitos enabled auto-merge (squash) September 5, 2023 08:12
@humitos humitos disabled auto-merge September 5, 2023 08:13
@humitos humitos merged commit e2898a3 into main Sep 5, 2023
@humitos humitos deleted the humitos/cache-addons-endpoint branch September 5, 2023 08:13
Copy link
Member

@stsewd stsewd left a comment

Choose a reason for hiding this comment

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

LGTM

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.

Addons: purge /addons/?url= when changing data
2 participants