#16670 closed enhancement (duplicate)
More efficient default .htaccess rules
Reported by: | g1smd | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Rewrite Rules | Keywords: | |
Focuses: | Cc: |
Description
Potential three fold performance increase in rewrite processing, simply by restricting which URL requests result in very inefficient -f and -d "exists" checks being invoked. These checks never need to be invoked for image or stylesheet requests.
Discussed at: http://wordpress.org/support/topic/more-efficient-rewrite-rules
Attachments (1)
Change History (11)
#2
@
14 years ago
- Keywords close 2nd-opinion added
See #11884
Per the decision from that ticket I am suggesting that this be closed as wontfix.
#3
@
14 years ago
Without the restrictions added by this patch, the standard WP code literally beats the server hard drive to death. The typical serving of a single "page" invokes at least several dozen very slow and inefficient "exists" checks: two for every object (image, stylesheet, etc) so requested. These checks for disk-based-resources happen for URL requests that were never going to be rewritten to the index.php script anyway. In that case, the checks are not needed, and should be avoided. Without the proposed changes, medium and high traffic sites will have to purchase an early server upgrade.
#4
@
14 years ago
- Milestone Awaiting Review deleted
- Summary changed from More efficient default rewrite rules to More efficient default .htaccess rules
Patch for wp-includes/rewrite.php file