Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Auto flush OCmod log file 1.0.0

   (8 reviews)    Find their other files

SooR
  505 7,133

1 Screenshot



    Create an account or sign in to download this

  • +1 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 




User Feedback

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.