开发者

htaccess php flags and load time

I've added some php flags in my htaccess in order to change some php config settings

as I dont have acces开发者_运维技巧s to the .ini file

I'm wondering what effect that has on my website load speed,

is it slower?

thanks


The act of reading the .htaccess file is negligible. There shouldn't be any noticeable slowdown in that regard.

If you're noticing a slowdown, one of your settings changes probably did it.


If there is any difference, I don't think it's noticeable enough to be worried. Reading the .htaccess file and setting a directive is very lightweight operation compared to the whole process of executing a PHP script.


is it slower?

You tell me. Why don't you measure it? You could use the apache bench tool to see how making that change effects the number of requests per second you can do.

Chances are anything you do in your code is dramatically slower than a few .htaccess changes.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜