drush and theme system memory leaks
gunzip - April 29, 2009 - 09:49
| Project: | Drush |
| Version: | All-Versions-HEAD |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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 ?

#1
ok i've figured it out myself: putting "drupal_maintenance_theme()" at the start of the script seems to have solved the issue.
#2
glad you found a fix. this is really a drupal question - drush just bootstraps to full.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.