Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The shutdown function should be registered in hook_boot()
, not hook_init()
. In hook_init()
it does not get added on cached pages. This is bad.
Comment | File | Size | Author |
---|---|---|---|
#1 | hook_boot.patch | 739 bytes | xjm |
Comments
Comment #1
xjmComment #2
xjmhttp://drupal.org/commitlog/commit/364/ee9ea13b07129677926e5777ccb604b93...
Comment #4
xjmSo, based on #1313912: undefined function node_access_needs_rebuild() on cached anonymous requests, I think this needs to be reverted.
Comment #5
xjmComment #6
xjmFixed in the next -dev build:
http://drupal.org/commitlog/commit/364/e37bd28c5cca80127c805bd11ef03bfe9...
Comment #7
xjmOkay, wow, that commit stuck the hunk in the wrong place and is essentially totally bogus. Thank you, test suite.
Fixed here:
http://drupal.org/commitlog/commit/364/5a17b5e4ed655c249ef4691e18a6e78a9...