Forums

WordPress wp-config.php file speed (2 posts)

  1. spnova
    Member
    Posted 1 year ago #

    Hello!

    I've tested my WP, and confused a little.

    I created simple php file:

    ---
    $start_time = microtime(true);
    include("wp-config.php");
    $end_time = microtime(true);
    $exec_time = $end_time - $start_time;
    ---

    It takes 0.120 - 0.150 seconds for script processing.

    When I enable my plugins (about 15) it takes: 0.150 - 0.190 s.

    When I check My post process time, it takes: 0.250 s

    My question: Why "include("wp-config.php");" takes about 0.180 s
    And full post content with widgets takes only 0.070s
    ???

  2. wp-config.php isn't a script or file to be included. It's the config SETTINGS for your site, so I imagine calling it like that is causing wackiness.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags