• Resolved aga2442

    (@aga2442)


    Recently, I’ve been receiving warnings from my hosting company about high CPU usage on my website.

    I researched this issue thoroughly and found that the file /wp-admin/admin-ajax.php was being used intensively.

    To examine this file, I created a mu-plugin. I ran the necessary tests for about a day and found the following information:

    AIOVG – View count

    This content is the main source of admin-ajax.

    I also verified this test content with AI support.

    I want to completely disable or turn off this feature.

    Or I need a way to prevent the issue I mentioned.

    Do you have any suggestions regarding this situation?

    Because there are really too many requests.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support San Rosh

    (@sanrosh)

    Thanks for taking the time to investigate this so thoroughly and for sharing your findings — we truly appreciate the detailed analysis.

    Why this happens:

    In All-in-One Video Gallery, the view count is updated via AJAX because, technically, a view should be counted only after a visitor clicks the Play button on the player. This ensures accurate statistics, but on high-traffic websites or pages with many videos, this can result in a large number of requests to:

    /wp-admin/admin-ajax.php

    which may trigger CPU usage warnings from some hosting providers.

    Our upcoming improvement:

    We’re already considering moving this logic to a custom REST API endpoint instead of using admin-ajax.php. This approach should significantly reduce overhead and improve performance. We plan to include this enhancement in an upcoming version. Thank you for bringing this to our attention 👍

    Immediate solution:

    Unfortunately, there is currently no built-in option to completely disable this AJAX request.

    That said, no worries — we can usually optimize this based on how the player is initialized on your site.

    Please contact us directly via our support portal and include your site URL:

    👉 https://plugins360.com/support/

    Once we review your setup, we can identify the exact player initialization method being used and provide a suitable code patch to bypass or significantly reduce the AJAX load.

    Thanks again for reaching out. We’re happy to help and ensure the plugin runs efficiently on your website.

    Thread Starter aga2442

    (@aga2442)

    @sanrosh

    thanks.

    The news about the upcoming update is quite good.

    I don’t want this for myself. I’m sure other plugin users are also experiencing problems.

    My suggestion: don’t make this feature mandatory. It should be optional to enable/disable it.

    The video counter feature is of no importance to me, frankly.

    Best wishes.

    Plugin Support San Rosh

    (@sanrosh)

    Thank you for the feedback — we completely understand your point, and it’s a valid one.

    You’re absolutely right that view counts may not be important for everyone, and we agree that this feature should ideally be optional. We’ve already noted this internally and will take it into account while improving the implementation in a future release, especially as we work on moving this logic away from admin-ajax.php.

    At the moment, however, this feature is not configurable via a setting, and we can’t reliably optimize or bypass the AJAX call globally without reviewing how the player is initialized on a specific site. That’s why we previously requested the site URL.

    Please contact us via our support portal and share your site address:

    👉 https://plugins360.com/support/

    Once we review your setup, we can provide a safe code patch that disables or bypasses the AJAX load for your use case.

    Thanks again for taking the time to share your thoughts. Constructive feedback like this genuinely helps us make the plugin better for everyone.

    Plugin Support San Rosh

    (@sanrosh)

    @aga2442

    We’ve just released version 4.7.5.

    Please update the plugin to the latest version. After updating:

    1. Navigate to Video Gallery → Settings → Player
    2. Locate the “Enable Views Counting” option
    3. Uncheck the setting and save changes
    4. Check again to see if the issue is resolved

    We hope this fixes the problem. Please let us know if you still experience any issues.

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

You must be logged in to reply to this topic.