| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/d2m/sofident_cz/wp-content/plugins/shortpixel-image-optimiser/class/external/ |
Upload File : |
<?php
namespace ShortPixel;
use ShortPixel\ShortPixelLogger\ShortPixelLogger as Log;
/* Prevent Flock Queue on FlyWheel Cloud Hosting due to performance issues.
*
* Detect Flywheel and set Constant
*/
if (isset($_SERVER['SERVER_SOFTWARE']))
{
$server = strtolower($_SERVER['SERVER_SOFTWARE']);
if (strpos($server, 'flywheel') !== false) // server detected
{
$pos = strpos($server, '/') + 1;
$version = substr($server, $pos);
if (version_compare($version, '5.0.0') >= 0)
{
Log::addInfo('Flywheel detected on ' . $server . ' . Starting NOFLOCK Queue.');
if (! defined('SHORTPIXEL_NOFLOCK'))
define('SHORTPIXEL_NOFLOCK', 1);
}
}
}