Because the function devel_shutdown() is registered as a shutdown function near the beginning pf the page load, it may fail to display queries run in shutdown functions registered later in the page load. Attached patch works around this by having devel_shutdown() register the real shutdown function.

This patch should be easily back-portable as well.

CommentFileSizeAuthor
devel-shutdown-real-0.patch1.05 KBpwolanin

Comments

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

i guess that will work.

pwolanin’s picture

I did give it a quick test with the menu patch, and the calls to cache_clear_all() via the new shutdown functions would then show up in the page footer.

pwolanin’s picture

bump - did this get committed? Seems not from my last CVS-update of devel

moshe weitzman’s picture

Status: Reviewed & tested by the community » Fixed

committed. thx.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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