Problem/Motivation
After configuring the module for the first time, I have left unchecked the detail logging option to keep my dblog output clean. After editing content, I can see log messages for successful purges in the logs. On a very simple site, saving the homepage results in 16 log messages.
Steps to reproduce
Install the module, enter Cloudflare credentials, and on the Auto-Purge Settings page choose: Enable automatic cache tag purging, empty prefix, Entity types: Content, Media, Paragraph, Taxonomy Term; select "Emit only purgeable tags in the Cache-Tag header," and leave the default of 100 Purge history entries to display. All other checkboxes are unselected.
Proposed resolution
Check for the "Enable detailed logging" option to be set before logging each successful purge.
Issue fork cloudflare_purge-3606632
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 #3
hilly510 commentedMR included
Comment #4
flashwebcenterConfirmed and fixed for 3.1.1. Successful purge messages were being logged from the API service and queue worker without checking the “Enable detailed logging” setting, so auto-purge could still write to dblog on every save. Successful purge logs now honor that setting; errors and warnings are still always logged.
Please download the dev release and test.
Thanks for the clear report and repro steps.
Best wishes,
Alaa