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
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

gunzip - April 29, 2009 - 10:09
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.

#2

moshe weitzman - April 29, 2009 - 12:05

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

#3

System Message - May 13, 2009 - 12:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.