Active
Project:
Purge
Version:
8.x-3.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2025 at 17:10 UTC
Updated:
27 Feb 2025 at 17:10 UTC
Jump to comment: Most recent
Trying to use path based invalidation does not work even though the readme says you can do that:
$purgeInvalidationFactory = \Drupal::service('purge.invalidation.factory');
$purgeQueuers = \Drupal::service('purge.queuers');
$purgeQueue = \Drupal::service('purge.queue');
$queuer = $purgeQueuers->get('myqueuer');
$invalidations = [
$purgeInvalidationFactory->get('path', 'contact'),
];
trying to do so throws the exception:
Drupal\purge\Plugin\Purge\Invalidation\Exception\TypeUnsupportedException: path in Drupal\purge\Plugin\Purge\Invalidation\InvalidationsService->get() (line 84 of modules/contrib/purge/src/Plugin/Purge/Invalidation/InvalidationsService.php).
Comments