admin管理员组文章数量:1318335
I am looking at my server settings and these are as follows:
WebDav : active
FastCGI : inactive
SSL support : active
Perl as Apache module : CGI-Programm
PHP module : CGI-Programm
Memory usage : 131072 kB
Process timeout : 60 seconds
Maximum simultaneous processes : 1024
Using WP-Supercache (mod-rewrite mode) and have around 6,000 posts. Should I enable FastCGI on my server? Any other settings you recommend changing?
I am looking at my server settings and these are as follows:
WebDav : active
FastCGI : inactive
SSL support : active
Perl as Apache module : CGI-Programm
PHP module : CGI-Programm
Memory usage : 131072 kB
Process timeout : 60 seconds
Maximum simultaneous processes : 1024
Using WP-Supercache (mod-rewrite mode) and have around 6,000 posts. Should I enable FastCGI on my server? Any other settings you recommend changing?
Share Improve this question edited Apr 19, 2013 at 16:21 brasofilo 22.1k8 gold badges70 silver badges264 bronze badges asked Apr 19, 2013 at 15:56 Mario LorenzoMario Lorenzo 791 gold badge4 silver badges8 bronze badges2 Answers
Reset to default 1For data that's been cached, the two caches should perform equivalent. In general, most folks will find that WP-Supercache is easier to setup and use from an admin perspective (purging & pre-populating).
People cache for two reasons: 1) Improved concurrency at handling many visitors simultaneously. This is only relevant to high-traffic sites. For this, both technologies can perform similarly.
2) Faster time-to-first-byte by pre-compiling the results. This is relevant to all sites, regardless of how much traffic. WP-Supercache can perform better here because it's easy to pre-populate your cache.
Nginx FastCGI cache just caches the output of Wordpress to disk so that requests that match the cache are immediately served by Nginx without hitting the PHP interpreter at all.
WP-Supercache does something similar; however you have to adjust your Nginx Vhost file to tell Nginx where to find the WP-Supercache files. If you do this, then performance should be equivalent.
Otherwise Nginx passes the request to PHP, which then retrieves the files. It's still significantly faster than hitting MySQL and compiling the result in PHP, but not quite as fast as skipping PHP entirely.
WP-Supercache does a little better job at integrating with Wordpress so it's safer to tell it to cache results indefinitely and then manually purge the item when it's updated, versus with FastCGI cache the default is cache items are purged after 10 minutes.
On the other hand, FastCGI cache can cache non-standard content, such as 301 redirects generated by your PHP app and 404 errors.
If you ran a really busy site, you could also run both caches together, probably making FastCGI cache not cache typical pages/posts since that's already cached by WP-Supercache, but caching 301, 404, etc.
I apologize this should be a comment.
You have to ask yourself if it's necessary. I know you're asking for advice, but is your website currently underperforming? Is it slow? Are users complaining?
I personally wouldn't recommend FastCGI, but there are various other plugins or tools to speed up your website.
I would recommend the following plugins:
- WP Super Cache
- W3 Total Cache
Seeing that you're already using WP-Super Cache, how is it currently configured?
More importantly, what is your server configuration? (Hardware, hosting etc.)
EDIT:
I will update and expand this answer to a 'real' answer when information becomes available.
本文标签: cacheShould I enable FastCGI on WordPress
版权声明:本文标题:cache - Should I enable FastCGI on WordPress? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742034161a2417018.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论