I enabled "display query log" in Devel. However, I've noticed not all queries are logged, for instance when enabling/disabling a module there is no "update system set status = 1.." query shown. Why is that? Thanks.

1 Answer 1


I found the answer: enable/disable module calls are ajax requests and the devel display query log doesn't show queries from the ajax request.

BTW, if you want to use hook_exit() you will notice it is not fired for ajax calls that use exit() and not drupal_exit(). However, if you need something to be run at runtime end, you can use PHP register_shutdown_function() in your module (in your hook_init() for instance).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.