Problem/Motivation
When developing locally with the GovCMS purge module enabled, the following error is raised:
`[error] diagnostics: ERROR: Purgers: There is no purger loaded which means that you need a module enabled to provide a purger plugin to clear your external cache or CDN.`
Steps to reproduce
1. From a fresh version of Drupal 9+, install the module in the usual way via composer.
2. Run a `drush pm:enable govcms_akamai_purge`
3. Run a `drush pml` or visit the site status page
You should now be seeing the issue.
The problem seems to be with the conditions under which the module's ConfigOverrides are enabled. Essentially, we have the purge module running, but unless the conditions here are met, there is no registered purger.
Proposed resolution
One possibility would be to load the purger (effectively getting rid of the condition in the ConfigOverrides) and then checking for the existence of the "LOCAL_DEV=true" environment variable value in the purger itself. If that is present, we don't engage any actual purge process.
Issue fork govcms_akamai_purge-3367766
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
acbramley commentedLooks like this is merged and in the latest release.