Problem/Motivation

During a recent staging deployment from PROD to DEV on Acquia, the DEV site became unresponsive and the deployment failed.
Many attempts at recovery were made, but drush wasn't able to work due to an "The URL is invalid." error that persisted.

After pulling the DB to work on it locally, the error led me to discover that the purge queue from the live site was still full and causing URL invalidation errors.

After clearing the queue, drush and the deployments went back to normal.

Steps to reproduce

Sync the database between environments.

Proposed resolution

Add a Drush sanitize plugin to the Purge Drush module so the queue empties when drush sql:sanitize is ran.

Remaining tasks

Create a PR with this change.

Comments

robertshell22 created an issue. See original summary.

robertshell22’s picture

StatusFileSize
new2.33 KB

This patch mirrors the same implementation as the purge_queuer_url module has.

robertshell22’s picture

a.hover’s picture

Thanks for this patch.
There was a small issue with the paths that meant it was being added to "/purge_drush/src/Drush/Commands" (i.e. straight in the project root) instead of "/modules/purge_drush/src/Drush/Commands" which I have resolved in the attached patch.