• Resolved ericcool

    (@ericcool)


    HI,

    My page generation time of front page takes 2.9s in average which is acceptable.

    However, If I stop using the site for about 1-2 hours and refresh the front page again , the page generation time takes 4.8s

    I’m using w3 cache plugin with object cache “disk” enable and block “WP_HTTP_BLOCK_EXTERNAL” in wp-config.php and database query time is less than 0.1s. So I believe the bottleneck is not in database and http calls.

    One thing I noticed when generation time takes around 4.8s , the disk I/O seems busy. But how do I know what cause the disk I/O busy? I don’t see any info in Query monitor plugin shows what are causing the slow time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Unfortunately disk I/O is one of the things that QM doesn’t track as I’ve found no reliable way to do this at the PHP layer.

    Is there anything shown on the Transients panel in QM when this happens? If so take a look at the functions shown to see if there’s any unexpected data processing happening.

    Something may be performing an HTTP request directly with Curl instead of via the WordPress HTTP API. This is impossible for QM to detect because PHP doesn’t expose the Curl handle nor provide an event system to hook into for monitoring purposes. You’ll need to search your codebase for functions such as curl_init and investigate.

    I notice there are no cache hit and miss stats for your object cache. These are usually shown in the Cache section in the Overview. This might mean you’re using an uncommon cache driver which doesn’t expose its stats. The hit and miss ratio isn’t especially useful on its own but it can be indicative of a problem.

    Best of luck.

    Thread Starter ericcool

    (@ericcool)

    I set “WP_HTTP_BLOCK_EXTERNAL” is true in wp-config.php so it supposes to block all HTTP API including those HTTP request directly with Curl, isn’t it?

    I also find it weird that when I disable object cache in w3 cache plugin. There are cache hit and miss stats info in the Cache section. And when I enable it, there are no information in cache section.

    However, if I enable object cache I can see the select query drop to only 110 in Database Queries section and it shows 395 when object cache is disabled.

    The below image is when object cache is disabled.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Page generation time takes more time after a while not using the site.’ is closed to new replies.