Welcome Guest, Not a member yet? Register   Sign In
Profiler not showing all queries
#1

[eluser]shelton_dev_guy[/eluser]
How can I make all queries show up in the Profiler whether I redirect() or load->view()?

If I redirect() the page, the queries don't show up in the profiler.
#2

[eluser]WanWizard[/eluser]
Quite obvious, a redirect causes an abort of the current page request and a new page request.
#3

[eluser]shelton_dev_guy[/eluser]
Thanks. Is there a method for saving up the queries if there is a redirect, so I can adjust the Profiler to show those as well as the ones used to make the current page?
#4

[eluser]WanWizard[/eluser]
Not easy, you will have to get the query data from all database objects, save it somewhere (session?), and write it back to the database objects after the redirect. Or extend the profiler to fetch the data from wherever you stored it.




Theme © iAndrew 2016 - Forum software by © MyBB