To know the number of accesses to the database by your site on WordPress, you need to file the theme footer. php before the tag add the following code. <!–?php echo get_num_queries(); ?–> queries in <!–?php timer_stop(1); ?–> You will also learn the time spent on processing all calls to the DATABASE.
Archive for March, 2019
To measure the speed of page generation in PHP, insert the following code at the beginning of the script: // Breathing start time of page generation $start_array = explode(” “,microtime());$start_time = $start_array + $start_array; And at the end of the script we write this: // Calculating the speed of page generation $end_array = explode(” “,microtime());$time […]
-Would you be kind to me in which direction to go? -In the famous you, – replied the cat. -I don’t know it. -So, in the unknown. In any case, it is known that in a known time you will find yourself therrre or herrre,-purring cat. Nginx Installation: apt update apt install nginx Installing PHP […]