I have a project on Acquia Cloud Site Factory, it has at least two domains, a public-facing domain that forbids the access to /user and /admin paths, and a back-office domain that restricts access from allowed IPs.

There is a need from the user to be able to manually purge the cache from Acquia Varnish wich PurgeBlock, but the PurgeBlock only supports purge the URL of the current domain, which is the back-office domain at this setup, but what the user wants is actually to purge the corresponding path from the public-facing domain.

Comments

weynhamz created an issue. See original summary.

weynhamz’s picture

I checked the code of PurgeBlock and found there is a possibility to leverage the `path` purge type to achieve the requirements.

Attached is the PoC code for RFC purpose, there is still lots of space to improve, or even there might be a better approach.

The patch is based on 8.x-1.0 branch.

aloneblood’s picture

Update the patch base on 1.2 version.

aloneblood’s picture

StatusFileSize
new4.56 KB
leo liao’s picture

leo liao’s picture