Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
drush eval '\Drupal\node\Entity\Node::load(1)->save();'
properly queues invalidations of 'node:1' and 'node_list'.
However, running the same code in drush php (REPL shell) queue nothing :
$ drush php
Psy Shell v0.7.2 (PHP 7.0.6 — cli) by Justin Hileman
>>> \Drupal\node\Entity\Node::load(1)->save();
=> 2
>>> quit
$ drush p-queue-browse
$
Comments
Comment #2
Wim LeersIt's yched!!!!!!!!
Comment #3
yched CreditAttribution: yched commented;-) ♥
Comment #4
moshe weitzman CreditAttribution: moshe weitzman commentedI can't think of any reason why the REPL would be different. Maybe some environment variables are different. Needs research.
Comment #5
japerry