# imagify/1.5/inc/3rd-party/hosting/wpengine.php

Imagify Image Optimization: Optimize Images | Compress &amp; Convert to WebP/AVIF, version 1.5. 17 lines.

- Page: https://pluginprobe.com/plugins/imagify/1.5/code/inc/3rd-party/hosting/wpengine.php
- Raw: https://pluginprobe.com/plugins/imagify/1.5/raw/inc/3rd-party/hosting/wpengine.php
- Modified: 2016-04-18T17:10:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/imagify/1.5/code/inc/3rd-party/hosting/wpengine.php#L10-L20`.

```php
<?php 
defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' );

if ( class_exists( 'WpeCommon' ) ) :

/**
 * Conflict with WP Engine: it seems that WP Engine limits SQL queries size.
 *
 * @since  1.4.7
 * @author Jonathan Buttigieg
 */
add_filter( 'imagify_unoptimized_attachment_limit', '_imagify_wengine_unoptimized_attachment_limit' );
function _imagify_wengine_unoptimized_attachment_limit() {
	return 2500;
}

endif;
```
