• Resolved atalaura

    (@atalaura)


    When I use the Imagify plugin to optimize my images, the memory usage on my hosting goes up to 95-100%. This causes my site to slow down at first and then crash for 10-30 minutes, and it doesn’t optimize the images because the site has already crashed. This happens when I use this plugin, but other than that I’ve never had memory issues.

    • This topic was modified 2 years, 10 months ago by atalaura.
    • This topic was modified 2 years, 10 months ago by atalaura.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WP Media

    (@wp_media)

    Hi @atalaura

    Thank you for contacting us and I am sorry to hear about the issue.

    Can you please try to add the following to your wp-config.php file (before the “That’s all! Stop editing…” message) to increase the amount of memory (this can be a larger number if your host/server will allow)and check again:

    define( ‘WP_MEMORY_LIMIT’, ‘256M’ );

    Feel free to let me know how it goes.

    Best Regards,

    Ioanna

    Thread Starter atalaura

    (@atalaura)

    The option you are talking about is already at 256.

    Plugin Author WP Media

    (@wp_media)

    Hi @atalaura

    Thank you for the update.

    Can you please clarify if you have a big number of images on your Media Library?

    If so there is a big number of images you can check the following suggestion as when you are viewing pages related to Imagify, Imagify counts the number of optimized and unoptimized images you have. In most cases, there’s no issue, but we have seen a few instances where a high optimized image count slows the loading of the page down.
    If you need, you could try adding the following code to your theme’s functions.php file:

    function pfx_limit_imagify_optimize_count( $count ) {
      return 1;
    }
    add_filter( 'imagify_count_optimized_attachments', 'pfx_limit_imagify_optimize_count' );
    add_filter( 'imagify_count_attachments', 'pfx_limit_imagify_optimize_count' );
    add_filter( 'imagify_count_unoptimized_attachments', 'pfx_limit_imagify_optimize_count' );
    add_filter( 'imagify_count_saving_data', 'pfx_limit_imagify_optimize_count' );
    add_filter( 'imagify_count_error_attachments', 'pfx_limit_imagify_optimize_count' );
    

    Let me know if the above helps.

    Best Regards,

    Ioanna

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘This plugin crashes my site’ is closed to new replies.