HEX
Server: Apache
System: Linux cpanelx.inxs.ro 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: crowdandsafety (1041)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/cwd/wp-content/plugins/shortpixel-image-optimiser/class/external/query-monitor.php
<?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();