- 10
About This File
The extension is intended for those who use a lot of modifiers, update them often and at the same time observe brakes when loading a page with modifiers.
According to my observations, for every 4th this log (ocmod.log) grows to huge sizes, which is loaded into the browser every time you open the modifiers page.
The extension clears this log when it reaches 3 mb. Checking for the log size is carried out every time you go to the modifiers page.
Code insertion is minimal:
if (is_file(DIR_LOGS . 'ocmod.log') && filesize(DIR_LOGS . 'ocmod.log') > 1024 * 1024 * 3) { $handle = fopen(DIR_LOGS . 'ocmod.log', 'w+'); fclose($handle); $this->session->data['success'] = 'Log is clean!'; }
After cleaning, you will see a message "Log is clean!".
See version support on the right →