Skip to content
Snippets Groups Projects
Commit dc097fee authored by David Barratt's avatar David Barratt
Browse files

Issue #3346115: Fatal error: Uncaught Error: Class...

parent cdfd768a
No related branches found
No related tags found
1 merge request!1Issue #3346115: Fatal error: Uncaught Error: Class...
......@@ -2,7 +2,6 @@
namespace Drupal\cloudflare_worker_purge\Plugin\Purge\Purger;
use CloudFlarePhpSdk\ApiEndpoints\CloudFlareAPI;
use Drupal\Core\Config\Config;
use Drupal\purge\Plugin\Purge\Invalidation\InvalidationInterface;
use Drupal\purge\Plugin\Purge\Purger\PurgerBase;
......@@ -26,6 +25,8 @@ use Psr\Log\LoggerInterface;
*/
class CloudflareWorkerPurger extends PurgerBase {
public const MAX_TAG_PURGES_PER_REQUEST = 30;
/**
* HTTP Client.
*
......@@ -93,7 +94,7 @@ class CloudflareWorkerPurger extends PurgerBase {
* {@inheritdoc}
*/
public function getIdealConditionsLimit() {
return CloudFlareAPI::MAX_TAG_PURGES_PER_REQUEST * 10;
return self::MAX_TAG_PURGES_PER_REQUEST * 10;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment