How to solve "flock has been disabled for security reasons" error?

ShortPixel Image Optimizer by default uses a file locking mechanism to manage the queue with the images that need to be processed.
While this works fine with most of the hosting companies, some (e.g. Flywheel) won't accept this option and an error will be returned.

There is an easy way to address this, just edit your wp-config.php file and add this line:
define("SHORTPIXEL_NOFLOCK", true);

Still need help? Contact Us Contact Us