Posted by gunzip on April 29, 2009 at 9:49am
Jump to:
| Project: | Drush |
| Version: | All-versions-5.x-dev |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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
#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.