| Server IP : 87.98.154.146 / Your IP : 216.73.216.165 Web Server : Apache System : Linux webm004.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : ohklomafyi ( 52085) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/ohklomafyi/www/wp-content/plugins/shortpixel-image-optimiser/class/external/ |
Upload File : |
<?php
namespace ShortPixel;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class QueryMonitor
{
public function __construct()
{
$this->hooks();
/* if (false === \wpSPIO()->env()->is_debug)
return;
*/
}
public function hooks()
{
//add_action('qm/output/after', array($this, 'panelEnd'), 10, 2);
// Filter QM dispatch because it consumes a lot of resources when preparing and out of memory. Keep it until end of ajax call
add_action('shortpixel/queue/prepare_items', array($this, 'addDispatchFilter'));
}
public function addDispatchFilter()
{
add_filter('qm/dispatch/ajax', array($this, 'dispatchFilter'), 20);
}
public function dispatchFilter()
{
return false;
}
public function panelEnd($qmObj, $outputters)
{
}
}
$qm = new QueryMonitor();