When executing some operation which involves hook_nodeapi() I'd like to inspect the value of $node with pqp($node);
However, at some point during hook_nodeapi() a drupal_goto() is called, which effectively sends the browser to a different page, and I can't actually inspect the contents of $node.
It would be nice if somehow the value of $node was cached (?) or saved somehow, so that it shows up instead of getting lost on a new page load.
drupal_set_message() uses the same logic - drupal (somehow) keeps a record of what messages must be displayed to the user, and only once they're actually displayed does drupal then forget about them. i.e. if a white screen loads due to some code failure and a message is meant to be displayed, the next time a valid page is loaded, that message shows.
Is this possible with PQP?
Comments
Comment #1
caktux commentedPQP is now using detailed performance logging so you should be able to see previous outputs even when drupal_goto is called. :D
Comment #2
burningdog commentedThanks caktux. When I put the new version of pqp into my modules folder and refresh, the black bar at the bottom of the screen disappears. I have to disable it (in the devel block) and enable it again. When I do, I get this message in pqp: "Detailed performance logging is not enabled. Go to the settings page to enable it."
So I do (admin/settings/performance_logging) - enabling detailed logging and summary logging - and pqp still has the same message. Plus, anything I log to it doesn't appear.
I do have this message on the page admin/settings/performance_logging
"APC is not enabled. It is not safe to enable summary logging to the database on live sites."
Not sure if that has anything to do with it?
Comment #3
caktux commentedMake sure you apply the patch to the performance module for now :)
Comment #4
burningdog commentedWhich patch?
Comment #5
caktux commentedThe one bundled in the dev package, if it isn't there, it's in CVS :) I hope I get my patch applied to performance module very soon ;)
Comment #6
caktux commented