Hi, last week I setup the CloudFlare purging following the guide here: https://github.com/d8-contrib-modules/cloudflare/blob/8.x-1.x/docs/freet... as I have a free CloudFlare account.
Now I noticed that the only messages generated in my log from the purger are like this:
purger_cloudflare_c57b2f805a: Client error: `DELETE https://api.cloudflare.com/client/v4/zones/959614d6781c9fe79a9fae42bfbf9...` resulted in a `400 Bad Request` response: @"success":false,"errors":[{"code":1107,"message":"Only enterprise zones can purge by tag."],"messages":[],"result":nul (truncated...)
Any ideas what might be wrong and how to fix it? Thanks!
Comments
Comment #2
adam.weingarten CreditAttribution: adam.weingarten as a volunteer commentedpgp111 you found a bug in the documentation! The solution is to disable: purge_queuer_coretags! I'll keep this issue open with the goal of updating the docs.
Comment #3
pgp111 CreditAttribution: pgp111 commentedThank you Adam, that makes sense. I just disabled the module, will keep an eye on it.
Comment #4
vibrasphere CreditAttribution: vibrasphere commentedDoes not fix disabling
purge_queuer_coretags
Keep getting errors:
purger_cloudflare_230de137ce: Client error: `DELETE https://api.cloudflare.com/client/v4/zones/d4cb97b6fdd0ee15f4f86f2cbff3f100/purge_cache` resulted in a `400 Bad Request` response: @"success":false,"errors":[{"code":1107,"message":"Only enterprise zones can purge by tag."],"messages":[],"result":nul (truncated...)
Comment #5
vibrasphere CreditAttribution: vibrasphere commentedAlso the docu for 8.x is outdated, the
- clear stale tag clear requests: `drush ev "delete from queue where name = 'purge'"`
does not work and ends up in error, as I understand it's set for D7 version or something:Comment #6
adam.weingarten CreditAttribution: adam.weingarten as a volunteer commentedTry doing
drush pqe
. That will empty the queue. It should work after that. I'll update the documentation accordingly.Comment #7
vibrasphere CreditAttribution: vibrasphere commentedI have no idea what's
purge pqe
and how to do it.Comment #8
adam.weingarten CreditAttribution: adam.weingarten as a volunteer commentedapologies I meant to write
drush pqe
Comment #9
pedrop CreditAttribution: pedrop at Brainsum for Tieto commentedI confirm that disabling purge_queuer_coretags and enabling purge_queuer_url , then running drush pqe solves the problem (free tier).
I submitted a pull request to fix the documentation: https://github.com/d8-contrib-modules/cloudflare/pull/61
Comment #10
esolitosThis can be worked around by using the patch from #3165072: Split purgers by type and enabling only the "Cloudflare URL" purger.