I implemented a CodeIgniter hook to log all database transactions using the CI Profiler, as described here: CodeIgniter query log hook
It works fine, but surprisingly it doesn't "catch" most of INSERT and UPDATE operations. In the log file I only see the SELECTs, and I'm sure the application is working properly, since I can see the inserted/updated data on the page and in the database as well.
Using the $CI->output->enable_profiler(true);
to show the Profiler on the views has exactly the same effect.
Would it be because my models extend a customized "parent" class (inside \core folder) instead of extend the CI_Model directly? Or it would be due AJAX requests?
Thanks in advance!