- 🇦🇺Australia acbramley
Just a warning - Drush 12 has seemingly rolled this functionality back. Destruct is no longer called on
drush p:queue-work
meaning invalidations stay in the queue table and are repeatedly picked up once the expire time lapses.
Hi there,
Maybe I do something wrong, but I have the following problem:
I use the purge module together with the submodule purge_processor_cron and the varnish_purge module.
Everything works like a charm, except when I run the cron with Drush (9.4.0).
All the invalidated tags get invalidated, but after that, the queue items won't get deleted. That means that by the next cron runs, the queue items will be invalidated over and over again and the queue will only grow.
With the help of XDEBUG, I managed to figure out that by a cron run via cron.php, the 'destruct' method of the QueueService class is being called, which will cause the queue items to be deleted. However, when running cron via Drush, this destruct method is skipped.
For now I will run the cron via cron.php, but I think it is a bug that should be fixed.
Side note: I use the ultime_cron module, but I don't know if this has any effect on the problem.
Fixed
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Just a warning - Drush 12 has seemingly rolled this functionality back. Destruct is no longer called on drush p:queue-work
meaning invalidations stay in the queue table and are repeatedly picked up once the expire time lapses.