I wasted a few hours on figuring out why an init hook in one of my modules wasn't invoked when normal page caching was on. Turns out the boostrap field in the system table for my module was still 0, instead of 1. So remember boys and girls, when you allready enabled your own custom module and you add an hook_init, remember to disable and enable your module again so Drupal knows it exists. Or manually alter the record in the system table in your database if disabling the module breaks your site.
On the bright side, I think I know every line of bootstrap.inc and cache.inc file now by heart.
Comments
I really can't understand a Permalink
Submitted by me on November 28, 2007 - 17:24
I really can't understand a word you're saying!
great info! just been trying Permalink
Submitted by wen on August 11, 2008 - 18:59
great info! just been trying to figure out the same problem. thanks!
Add new comment