Support » Plugin: WebP Express » how to turn-off conversion logs?

  • gubatron

    (@gubatron)


    I’m trying to minimize the number of disk writes on my server and every day I have an annoying wp-content/webp-express/log folder taking several megabytes. For now I’ve had to put a cronjob that keeps deleting it, not the ideal way to deal with this.

    I don’t see anything on the wp-content/webp-express/config/config.json file that allows me to turn these logs off.

    Perhaps there’s some object I can invoke in my theme’s functions.php that allows me to programatically turn it off until there’s an update in the plugin’s settings page to maybe…

    “[x] Enable conversion logs”

    F1!!!

    • This topic was modified 2 months ago by gubatron.
Viewing 1 replies (of 1 total)
  • Same here.

    Would be lovely to have something like the following inside webp-express/lib/classes/ConvertHelperIndependent.php

    
        private static function saveLog($source, $logDir, $text, $msgTop)
        {
            if (false === apply_filters( 'WebPExpress\\saveLog', true )) {
                return;
            }
    
    
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.