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

Invalidate CDN caches after uploading database dump #6656

Merged
merged 9 commits into from
Jun 22, 2023

Commits on Jun 21, 2023

  1. Implement cache invalidations on Fastly

    An implementation for cache invalidations on Fastly has been added.
    Specific paths can be invalided using Fastly's cached URL endpoint,
    but this does not support wildcard invalidations.
    
    Documentation on Fastly's invalidation API can be found here:
    https://developer.fastly.com/reference/api/purging/
    jdno committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    2fc6b7c View commit details
    Browse the repository at this point in the history
  2. Invalidate CDN caches after uploading database dump

    After uploading a new version of the database dump, the cached version
    needs to be invalidated in CloudFront and Fastly.
    jdno committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    642383d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cecb3cd View commit details
    Browse the repository at this point in the history
  4. Warn instead of panicking when invalidations fail

    When invalidating a CDN fails, we want to log a warning and continue
    execution. This ensures that invalidations against all CDNs are
    attempted.
    jdno committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    7bd880d View commit details
    Browse the repository at this point in the history
  5. Get Fastly instance from environment

    An instance of the Fastly struct has been added to the `Environment` so
    that it can be shared between jobs.
    jdno committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    8900804 View commit details
    Browse the repository at this point in the history
  6. Optionally invalidate the Fastly cache

    If the API token for Fastly is missing in the environment, skip
    invalidating the cache there. This makes it possible to opt-in to the
    new feature.
    jdno committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    4e0443d View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2023

  1. Return obsolote return value

    jdno committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    4d62067 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b2bea23 View commit details
    Browse the repository at this point in the history
  3. Fix initialization of test app

    jdno committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    274c083 View commit details
    Browse the repository at this point in the history