$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>php - Huge time to first byte on live site|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

php - Huge time to first byte on live site

matteradmin9PV0评论

I have problems with loading my site. Time to first byte varies from 0,5 to even 10s. I can't find what may cause that lag in back-end processing.

My site : www.mm.bartoszwasz.pl

Test with GMetrix .bartoszwas.pl/SdPhlpjs

What i already did:

  1. Hosting response test - ping www.mm.bartoszwas.pl gave me result of 15ms
  2. Putting small php file into my child-theme to check access time (15ms) .php
  3. Links changed to HTTPS from normal HTTP - to avoid redirects.
  4. Links in wp-config and database updated to HTTPS
  5. Disabled plugins

Is anything else i can try?

I have problems with loading my site. Time to first byte varies from 0,5 to even 10s. I can't find what may cause that lag in back-end processing.

My site : www.mm.bartoszwasz.pl

Test with GMetrix https://gtmetrix/reports/mm.bartoszwas.pl/SdPhlpjs

What i already did:

  1. Hosting response test - ping www.mm.bartoszwas.pl gave me result of 15ms
  2. Putting small php file into my child-theme to check access time (15ms) https://mm.bartoszwas.pl/wp-content/themes/storefront-child/test.php
  3. Links changed to HTTPS from normal HTTP - to avoid redirects.
  4. Links in wp-config and database updated to HTTPS
  5. Disabled plugins

Is anything else i can try?

Share Improve this question asked Jan 18, 2019 at 1:14 Bartosz WasBartosz Was 1001 gold badge3 silver badges12 bronze badges 2
  • I can't diagnose, because from here (in U.S.) it is loading almost instantly each of 20 times I tried. – tmdesigned Commented Jan 18, 2019 at 1:17
  • Thank's for testing. Good to hear you don't have any problems, that means that the problem doesn't occur that often. But still i have to lower this TTFB time. Even 2s is huge.. – Bartosz Was Commented Jan 18, 2019 at 10:28
Add a comment  | 

1 Answer 1

Reset to default 0

To check on your own system, use the Developer Tools (usually F12) and the Network tab. That will tell you which request is taking too much time.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far