• Resolved phloo

    (@phloo)


    In the plugin’s function.php, there is this code:

    # info and api call
    $api = 'https://fastvelocity.com/api/fvm/ignore.txt';

    Which is making a http request to your domain.

    1.) The content of the requested url are some strings which are already provided two lines above the API code

    2.) Every external call makes the site slower and is not helping for SEO reasons.

    So, what is the reason you added this part to the plugin?
    Besides that, it is a nice addon.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Raul P.

    (@alignak)

    Hi,

    Here’s some info on that:

    a) The ignore list exists to avoid conflicts when merging certain css or js files. There is a box you can use on the plugin settings, however, there is also a default list with files that are 100% known to break things.

    I was coding those directly on the plugin, but it so happens that when I needed to update or add new files to the ignore list, I also had to push an update… which later, I was told by the wp team, that should not happen.

    So the solution was the api call that you see, so I can just update the text file anytime.

    b) The api call is made once every 24 hours and cached on a transient. It doesn’t make an external call on every pageview.

    Thread Starter phloo

    (@phloo)

    Hi Raul, thanks for the quick and informative reply.
    I can understand when the team say it’s not okay to update the plugin each time you have to add something to this exclusions.

    Our problem is: we are working on a very strict server and outgoing connections are blocked. Currently we are unable to use the plugin, some errors happen when trying to install it on the live server. That is when I found out about the api calls.

    Maybe an option to disable api updates by default would be possible.
    Let the users choose if they want to use the updates or not. Otherwise we need to move onto another plugin I fear.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Why is there an unnecessary API call every time?’ is closed to new replies.