• Hello,

    I’m experiencing a performance issue on my site that appears to be related to a conflict between WP-Optimize Premium and EWWW Image Optimizer. Since installing EWWW Image Optimizer, I’ve noticed slow database queries even though I haven’t enabled either of these WP-Optimize options:

    • Automatically compress newly-added images
    • Show compression meta-box on an image’s dashboard media page

    Using Query Monitor, I found the following slow query:

    sql

    Copy

    SELECT DISTINCT(attachment_id) FROM wp_ewwwio_images WHERE gallery='media'

    This query is triggered by the function WP_Optimize_Bulk_Smush->get_ewww_io_compressed_images() in the WP-Optimize Premium plugin, and it took over 10 seconds to execute. There are additional queries (such as one involving WP_Optimize_Power_Tweak__Post_Meta) that also seem to be affected.

    Could you please advise on how to resolve this issue? Should WP-Optimize Premium be detecting that EWWW Image Optimizer is active and avoid running these queries, or is there a configuration change I need to make?

    Thank you for your assistance.

Viewing 1 replies (of 1 total)
  • Plugin Support adamewww

    (@adamewww)

    Hi @gabu69

    I think I would probably recommend speaking with the WP-Optimize folks about this. The query that is being performed is by WP_Optimize_bulk_Smush so it’s hard for us to say how those things could be fixed.

    You (or WP Optimize) could detect when EWWW IO is active and suppress queries related to image optimization and EWWW IO specifically. You can either check for the core ewww_image_optimizer() function, or the?EWWW_IMAGE_OPTIMIZER_VERSION constant to detect EWWW IO.

    Alternatively, you could switch over to our premium options and use our Easy IO CDN and our SWIS Performance plugin (which provides a page cache as well as JS/CSS management tools).

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.