Delay on the server to record and access information

1

Good morning / afternoon / evening at all, I have a problem with two php-mysql sites;

First of all I want you to understand the situation, I have 2 sites that record information on the same basis, site 1 is hosted on the same base server, and site 2 > has a server only for it.

The problem is that site 1 (which has the same base on the same server) takes about 2-3 seconds to access and write information, or the site 2 (which makes a connection to the site 1 server) records instantly.

The codes are not a problem, because even in a simple query it has this time difference and both use mysql-connect ();

mysql version = 5.5.47;

Thank you.

    
asked by anonymous 06.01.2017 / 12:09

1 answer

0
  • Check if the queries executed are the same, if you do not have a large "select" on Site 1, this can change the speed;
  • Is the Site 1 database host configured as "localhost"? If it is configured with a URL and the DNS server is not local, it may be too late;
  • When you open Site 1, do you call any JavaScript, CSS or etc plugins that are not hosted on the same server?
06.01.2017 / 14:05