A few people has requested a drush implementation of the re-computing of the fields. It makes sense, so I will implement this.

As the batch handling in drush seems a bit handheld, I'm not sure if I will implement a batch run. I will look in to it.
If it seems straight forward to do a complete/partial implementation (making the batch ready to run), I will also implement this.

Comments

frakke’s picture

I have added a drush command line utility for processing computed_field fields.

For now I won't implement any actual batch routine unless there is a need for it. For now I don't see any.

The drush command is "drush cftr".
Optionally you can pass the computed_field name along "drush cftr field_computed".
You can turn off the output through "drush cftr --output=0".
You can limit the number of entities to process through "drush cftr --limit=3".

Needs testing.

relaxy’s picture

Can you backport the code for Drupal 6 please?