config question, is it good?

Felipe Oliveira Carvalho felipekde at gmail.com
Sat Apr 17 01:09:26 MSD 2010


Be sure WP-Super-Cache is really working, although I think you already
have done that. You can do this looking at the last lines of the page
source code.

[...]
<!-- Dynamic page generated in 0.566 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-04-16 14:33:19 -->
<!-- super cache -->

Refresh the source code (you can configure WP-Super-Cache to don't log
pages for logged in users) and you will realize that the PHP
processing and database may not be the bottleneck.

I had a the same problem you are having. My wordpress sites were very slow.

I solved this using the
http://code.google.com/intl/en-US/speed/page-speed/ to diagnostic what
were really slow. You don't have to follow all the recommendations of
PageSpeed but you will get a great improvement if you start to use
gzip for javascript and css files. The most important recommendation
is to set cache expiration of icons and other images properly.

I think Apache uses gzip for css and javascript for default but I
really don't know this for sure.

I have tried to do this with nginx and the only way I achieved this
was using gzip_static. I must generate the .css.gz and .js.gz files
with a script I had programmed but it works very well and I can,
without any server performance loss, use the highest gzip compression
level.

--
Felipe

On Thu, Apr 15, 2010 at 5:05 AM, 任晓磊 <julyclyde at gmail.com> wrote:
> Check the duration of page processing in PHP code. Maybe you should
> optimize your database operation.
>
> On Thu, Apr 15, 2010 at 3:01 AM, Max <maxbear at gmail.com> wrote:
>> Hello,
>>
>> I got a server running Intel Xeon-Nehalem 5520-Quadcore 2.2GHz + 12 gb ram.
>> I got the following conf in my nginx, is it a good choice? But sometimes, I
>> still found the wordpress sites are kind of slow. Sometimes, it just take s
>> longer time to load a page and after that, the server just back to normal(wp
>> super cache is already running).
>>
>> worker_processes  4;
>> worker_rlimit_nofile 10240;
>>
>> #error_log  logs/error.log;
>> #error_log  logs/error.log  notice;
>> #error_log  logs/error.log  info;
>>
>> #pid        logs/nginx.pid;
>>
>>
>> events {
>> #    worker_connections  1024;
>> }
>>
>> Thanks.
>>
>> Max
>>
>> _______________________________________________
>> nginx mailing list
>> nginx at nginx.org
>> http://nginx.org/mailman/listinfo/nginx
>>
>>
>
>
>
> --
> Ren Xiaolei
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



More information about the nginx mailing list