pantheon-systems / WordPress

WordPress upstream for the Pantheon website platform. Includes a platform integration plugins and a pre-configured wp-config.php.
Other
179 stars 228 forks source link

Documentation for pantheon_clear_edge_paths ? #388

Open clarkewd opened 5 months ago

clarkewd commented 5 months ago

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.