We were struggling with performance issues on a client's site for some time now. We pinned down the real cause today. It was hidden very well as a bug in the Advanced User module.
I'm writing this down here since I'll probably make the same mistake myself sooner or later:
"Usage of t() in a global context, such as define(‘CONST’, t(‘...’)). The locale system is not yet initialized at that time, so this usage is incorrect and also leads to nasty performance problems. Never do it."
I got this quote from Gábor Hojtsy's Drupal 6 Translation Cheat Sheet.
Comments
And yes, I didn't know about that one at StuBru, but I remember all the node access trouble as it was yesterday :)
I think it can be gracefully solved http://drupal.org/node/320686 so unaware users don't have this again.
You probably started working a VRT after that, but we fixed a simular bug in stubru a few weeks after the release. ...with some help of Gabor...
(I think it was in the location views module)
Post new comment