• Resolved flashjunkie

    (@flashjunkie)


    As the title suggests, when I leave any wp-admin panel open and monitor the network, I see frequent requests to admin-ajax from imagify’s beat.min.js file.

    I could understand this if I was in the media area or the imagify bulk optimisation area but this is happening on every single admin page.

    Is there any way to reduce the calls to admin-ajax unless it is needed?

    Many thanks

Viewing 1 replies (of 1 total)
  • Plugin Author WP Media

    (@wp_media)

    Hi @flashjunkie

    Thanks for your patience!

    This script runs on media-related pages only inside the WP Admin area:

    – in our bulk page
    – in our settings page
    – in the library
    – when the “media modal” is used. This last modal is the popup that is used when we want to insert an image in a post for example: so everywhere this modal is present, our script will also be.

    It is currently triggering in 60 seconds which should not be too fast to affect your site. However, you can reduce it to 120 seconds with this code (this is the maximum that can be set):

    add_filter( 'imagifybeat_settings', function( $settings ) {
        $settings['interval'] = 120;
        return $settings;
    } );

    Hope this helps. ?Let us know if you need any further assistance, I am happy to help.

    Best Regards

Viewing 1 replies (of 1 total)
  • The topic ‘Admin Ajax – beat.min.js – even when not in Imagify panel’ is closed to new replies.