- Issue created by @alan.wallace
- πΊπΈUnited States alan.wallace
Putting a one second sleep in the purger in between calls appears to fix this:
AzurePurger.php:95$firstChunk = true; foreach ($chunks as $chunk) { /** * Microsoft CDN Purge endpoint will throw item limit error if multiple requests are received too quickly exceeding the 100 item limit */ if(!$firstChunk){ sleep(1); } $this->purgeChunk($chunk); $firstChunk = false; }
- π¨π¦Canada smulvih2 Canada π
@alan.wallace let me know if you are still experiencing this issue. I don't have any projects using FrontDoor, but maybe I can trigger this behavior with Azure CDN if I increase my chunk size. Will try this out over the next few weeks.
- π¨π¦Canada joel_osc
We are seeing this as well with the Azure CDN. Reach out if you want more info.
- π¨π¦Canada joel_osc
Have added some code similar to comment #3 to incorporate a delay - which is configurable. Having trouble creating an MR for some reason, MR url gives me 404. Maybe it was the Xmas break or the Covid... here is the diff: https://git.drupalcode.org/issue/azure_cdn_purge-3351085/-/commit/0c3c9a...
- π¨π¦Canada smulvih2 Canada π
Opened a MR with your feature branch, and attached a patch to facilitate testing. @joel please test the patch, if it works we can merge this into the 1.0.x branch. @alan.wallac would be nice to get your input on this fix as well, see if it works for your scenario.
- π¨π¦Canada joel_osc
Will test now, thanks @smulvih2 and @alan.wallac for the original solution.
- π¨π¦Canada smulvih2 Canada π
This has been merged with the 1.0.x branch and will be included in next release.
- π¨π¦Canada smulvih2 Canada π
This has been included in 1.0.4, thanks guys!
Automatically closed - issue fixed for 2 weeks with no activity.