Is there any way turn off any component (for example log component) in controller or action.
I need this feature when for example i have action with thousands of queries, or for ajax actions where should not be any additional debug data.
Thanks!
Is there any way turn off any component (for example log component) in controller or action.
I need this feature when for example i have action with thousands of queries, or for ajax actions where should not be any additional debug data.
Thanks!
Only log component is preloaded by default as implemented in [font="Courier New"]protected/config/main.php[/font].
You cannot turn them off, because they don’t get turned on until you call any of them.
You can however set up different logging routes for different categories and levels, if you don’t want them to be logged.