$r->register_cleanup(sub { $self->process_queue(); });
Inside process_queue method I print out what phase I'm in using r->current_callback(), it "claims" I'm in the logging phase:
print STDERR $r->current_callback()
PerlLogHandler
HOWEVER: (The below reports correctly)
Instead of using the register_cleanup alias, I use: $r->push_handlers(PerlCleanupHandler => sub { $self->process_queue(); } );
print STDERR $r->current_callback()
PerlCleanupHandler
So is current_callback reporting not working and reporting the wrong phase??? Or is register_cleanup not pushing the method onto the cleanup phase properly?
Want to be your own boss? Learn how on Yahoo! Small Business.