- Issue created by @sillygwailo
For sites with a multi-site configuration, or at least that have the same value for the host as the sites folder, the sites folder value gets replaced with the load balancer's IP address.
On an Acquia site, let's say the host is example.com, and the files folder is in sites/example.com/files, running a drush p:invalidate
command like the following:
drush --uri=llu.edu p:invalidate url https://example.com/sites/example.com/files/files_subfolder/1234567.json
drush --uri=llu.edu pqa url https://example.com/sites/example.com/files/files_subfolder/1234567.json
The resulting PURGE in Varnish looks like this:
{"time": "[28/May/2025:12:24:36 +0000]", "status": "200", "bytes": "428", "method": "PURGE", "host": "example.com", "url": "/sites/23.215.0.136/files/files_subfolder/1234567.json", "query": "", "referrer": "-", "user_agent": "Acquia Purge", "client_ip": "[Client IP redacted]", "time_firstbyte": "0.000138", "hitmiss": "miss", "handling": "synth", "forwarded_for": "[Forwarded_for redacted]", "request_id": "[Request ID redacted]", "ah_log": "", "ah_application_id": "", "ah_environment": "", "ah_trace_id": ""}
Somewhere around the line 400 of src/Plugin/Purge/Purger/AcquiaCloudPurger.php
the replacement is too aggressive.
N/A
N/A
N/A
N/A
Active
1.5
Code