hello, i use some scripts to mass import nodes. i'm used to do this trough ./drush script myscript.php.

even if i don't need the theme system bootstrapped at all (because there's no themed output using drush from command line)
theming functions are leaking (a lot of) memory for each node_save() because of the including of templates.tpl and so on.

is there any way to disable the theme system during certain (bulk) operations ?

Comments

gunzip’s picture

Status: Active » Fixed

ok i've figured it out myself: putting "drupal_maintenance_theme()" at the start of the script seems to have solved the issue.

moshe weitzman’s picture

glad you found a fix. this is really a drupal question - drush just bootstraps to full.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.