A workaround has been proposed for Drupal 7, which unfortunately doesn't apply to D6, so I'm reopening a new ticket specific to D6.

http://drupal.org/node/1062452

This loading problem seems to cause a world of pain with any variables which are accessed outside of a function and so which need to be available before hook_init.

Comments

das-peter’s picture

gmania are you aware of this issue #1094598: Performance issues from strongarm_init() ? This approach makes all concerns about "when loading the variables" superfluous.
And as far as I know the changes were committed to 6.x as well as 7.x

gmania’s picture

Status: Active » Closed (duplicate)

Yup, just found that, and it works like a charm. Closing this as a duplicate.