kohanut icon indicating copy to clipboard operation
kohanut copied to clipboard

Profiling not working as expected

Open mdda opened this issue 15 years ago • 1 comments

In application/bootstrap.php, the following : 'profiling' => ! IN_PRODUCTION,

should be : 'profile' => ! IN_PRODUCTION,

(per the documentation above)...

All the Best Martin :-)

mdda avatar Aug 12 '10 18:08 mdda

In addition, if database profiling is FALSE, then Kohanut::render_stats() fails.

To fix this, in classes/kohanut/core.php : $queries = count($queries['database (default)']); should be : $queries = isset($queries['database (default)'])?count($queries['database (default)']):'unknown';

mdda avatar Aug 12 '10 18:08 mdda