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

Support for soft purging all #177

Closed
StarWar opened this issue Mar 20, 2021 · 1 comment
Closed

Support for soft purging all #177

StarWar opened this issue Mar 20, 2021 · 1 comment

Comments

@StarWar
Copy link

StarWar commented Mar 20, 2021

The current method purge_all does a hard purge. I need a method to support soft purging as well.

    def purge_all
      fetcher.client.post("#{Service.get_path(id)}/purge_all")
    end
@Integralist
Copy link
Contributor

Hi @StarWar thanks for opening this issue.

If you review the documentation for the purge_all API endpoint it states:

Purge-all requests cannot be done in soft mode and will always immediately invalidate all cached content associated with the service. To do a soft-purge-all, consider applying a constant surrogate key tag (e.g., "all") to all objects.

With that in mind, I'm going to close this issue but please do feel free to continue the conversation here if you have any further questions.

Thanks.

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

2 participants