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

Documentation for pantheon_clear_edge_paths ? #388

Open
clarkewd opened this issue Jul 1, 2024 · 0 comments
Open

Documentation for pantheon_clear_edge_paths ? #388

clarkewd opened this issue Jul 1, 2024 · 0 comments

Comments

@clarkewd
Copy link

clarkewd commented Jul 1, 2024

There is an example of using pantheon_clear_edge_paths on the Pantheon Wordpress Cache page.

It gives an example of how to clear a specific path:

pantheon_clear_edge_paths(['/books-on-startups/']);

However, there doesn't seem to be any documentation on this function, the style of parameters it accepts, or how it handles the paths.

For example, does this also clear sub-paths and/or query variables? If using the above function, will /books-on-startups/recent/ and /books-on-startups/?sort=date both be cleared?

If not, does the function accept wildcard (*) arguments such as '/books-on-startups/*'?

Without that functionality it seems like the next best option would be to clear everything via the flush_site function.

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

1 participant