1

By having WordPress installed in a subfolder / directory does this mean WordPress will do more script executions then having WP installed at the root level?

Edit: The root level index file has 645 563 number of executions while the sub directory index file has 34 739

7
  • The root level index file has 645 563 number of executions while the sub directory index file has 34 739.
    – Bjarni
    Commented Aug 25, 2016 at 0:55
  • What exactly do you mean by script executions and what tooling are you measuring it with?
    – Tom J Nowell
    Commented Aug 25, 2016 at 3:01
  • Hi Tom, it was the stats from the web hosting company once I logged into the account. It just stated that the root level index file had 645 563 script executions while the index file inside the folder where WordPress was installed had only 34 739
    – Bjarni
    Commented Aug 25, 2016 at 3:27
  • Ooh, so you mean will a file be hit more if it's in a subfolder or in the root?
    – Tom J Nowell
    Commented Aug 25, 2016 at 23:08
  • The WordPress website is running from a subfolder and in the root directory Ive updated the index.php to the following: require( dirname( FILE ) . ‘/wordpress/wp-blog-header.php’ ); From here: codex.wordpress.org/… So when checking script executions the root level index file has 645 563 while the sub directory index file has 34 739.
    – Bjarni
    Commented Aug 26, 2016 at 1:19

1 Answer 1

1

Short answer, no. Having your WordPress site installed in a sub-directly (ex: http://some.site/wordpress) does not mean it will do more script executions then having it installed at the root level.

7
  • Okay thanks, it was just odd that the root level index file had 645 563 number of executions while the sub directory index file had 34 739
    – Bjarni
    Commented Aug 25, 2016 at 0:54
  • @Bjarni You're gonna have to elaborate more on where you are seeing these scripts being executed. Despite the number change. Is everything working and displaying properly on your website? Commented Aug 25, 2016 at 1:12
  • yes site functions well though it was using up a lot of resources with the number of script executions for the index file at the root level. The WP site is within a subfolder. codex.wordpress.org/…
    – Bjarni
    Commented Aug 25, 2016 at 1:19
  • @Bjarni I don't believe that the amount of scripts being executed correlates to where your WordPress is located in this instance. Isn't having less scripts executing a good thing? Since this should essentially speed up your website's load time? Commented Aug 25, 2016 at 1:22
  • Okay it was just odd when compared the number of executions for the index file, one at the root level and the other in the subfolder
    – Bjarni
    Commented Aug 25, 2016 at 1:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.