Paul Hartrick dot com保羅Hartrick點通信






Make Wordpress Run Even Faster請WordPress的運行速度更快

Feb 1st 2008 2008年2月1日
10 Comments 10評論
16 views 16次
respond回應
trackback引用

Back in December I blogged about “早在12月我的博客上講述“ How Fast is your Wordpress Blog”如何快速,是您的WordPress博客“ Since then I have done a lot more research into this subject and I have come up with a few more ways to Speed up Wordpress and make it從那時起,我已做了大量的研究這個問題,我已經提出了一些更多的途徑來加快WordPress的,使它 Digg Digg Proof in the event of an extremely popular post.在事件證明了一個非常流行的職位。

<Disclaimer> <Disclaimer>
The following tips to speed up Wordpress are certainly not for the faint of heart, and I suggest you only attempt these with a good disaster recovery plan in place.下面的提示,以加快WordPress的肯定不是勇敢者的遊戲,我建議你只嘗試這些良好的災難恢復計劃進行。

</Disclaimer> “/聲明”

One of the first and most successful techniques is to optimize your database.其中首要的和最成功的技術,是優化您的數據庫。
Working daily on very large Oracle Databases I certainly know the importance of a well tuned database.每天工作非常大的Oracle數據庫我當然知道的重要性以及調整的數據庫。 Since pages are served dynamically, every page load in Wordpress results in a Mysql Query, and as stated in my first post on由於網頁是動態,每個頁面加載WordPress的結果在MySQL查詢,以及曾在我的第一篇文章的 speeding up Wordpress加快WordPress的 the WP-Cache plugin helps to reduce these queries but it's also important to make sure you have the Query Cache optimized for maximum performance.在WP - Cache插件有助於減少這些疑問,但它也必須確保你有查詢緩存優化的最高性能。

To activate the Mysql Query Cache:要激活MySQL查詢高速:

1. 1。 Find your mysql configuration file my.cnf尋找你的MySQL配置文件my.cnf
2. 2。 Find the setting query-cache-type & change the value to 1找到設置查詢緩存的類型和值更改為1
3. 3。 Find the query-cache-size & change the value to 20M找到查詢緩存的大小和更改該值為20M,
4. 4。 Find the query-cache-limit & change the value to 2M找到查詢緩存的限制和值更改為200萬

You will need to make sure your host allows root access to the server in order to do this tweak.您需要確保您的主機允許根訪問服務器為了做到這一點調整。

The next tip to try is using PHP Compiler Cache下一個提示,以嘗試的使用PHP編譯器緩存

The PHP Compiler cache saves scripts in their compiled format on the server so that they're not getting recompiled every time you call them from Wordpress.編譯器緩存的PHP腳本保存在其編制的格式的服務器上,這樣他們在沒有得到重新編譯每次調用他們從WordPress的。 It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated.它的性能提高PHP腳本的緩存他們在編譯的狀態,使編制的開銷幾乎完全消除。 It also optimizes scripts to speed up their execution.它還優化腳本來加速執行。 It typically reduces server load and increases the speed of your PHP code by 1-10 times.它通常降低了服務器負載,增加的速度,你的PHP代碼1-10倍。

Here are links to a couple of PHP Compiler Caches以下是鏈接到一對夫婦的PHP編譯器緩存 APC apc的 & eAccelerator eAccelerator的

The final tip I have for today is to make sure you select the correct hosting company.在最後的技巧,我今天是要確保選擇了正確的託管公司。

Unfortunately I initially selected one of the most incompetent hosting companies in the known universe for my personal blog, and I have had nothing but grief, angst, argument and downtime since joining….. 不幸的是我最初選擇了一個最不稱職的託管公司在已知的宇宙為我的個人博客,我也沒有什麼但悲傷,焦慮,爭論和停機自加入... .. The name of the worst hosting company in the world is 'smartyhost dot com dot au', I won't even link to them thanks how much they suck. In spite of their total incompetence and lack of support and b-grade service I have still managed a reasonably fast Wordpress blog. 這個名字最嚴重的託管公司在世界上是'smartyhost點通信點金',我不會鏈接到他們甚至感謝他們吸多少。儘管其總的無能和缺乏支持和B級的服務我但仍然相當快的WordPress博客。 I am saving all the problems with the worst hosting company in the world, for another blog post, and I will make sure I get the keyword SEO just right to ensure it gets 1st position on Google….. 我保存的所有問題最嚴重的託管公司在世界上的另一個博客後,我將確保我得到的關鍵字搜索引擎優化恰到好處以確保它獲得第一的位置上谷歌... .. rant over…. 咆哮了...。

The two hosting companies I looked at and reviewed are這兩個託管公司我看著和審查的 bluehost.com bluehost.com and micfo.com micfo.com , but keep in mind micfo.com doesn't accept credit card payments so you have to use paypal or wire transfer…. ,但請記住micfo.com不接受信用卡付款,您必須使用貝寶或電匯...。 I elected to use bluehost.com.本人選擇使用bluehost.com。 After this weekends這個週末後 Photo Hunt照片亨特 competition I will redirect my DNS to my new host with migrated blog and hopefully everyone will see another speed boost….競爭,我將我的DNS重定向到我新的主機與遷移的博客,希望大家會看到另一速度的提高...。

がんばてます がんばてます

To get new stuff automatically subscribe to my要獲得新的東西,我會自動訂閱 RSS feed RSS提要 .
For a more personal insight Follow me on對於更多的個人見解跟我上 Twitter嘰嘰喳喳 .


This post is tagged這個職位是標籤 , ,

10 Comments 10評論

  1. I found your site on technorati and read a few of your other posts.我發現您的網站在Technorati的和閱讀的一小部分的其他職位。 Keep up the good work.保持良好的工作。 I just added your RSS feed to my Google News Reader.我只是將你的RSS提要,以我的谷歌新聞閱讀器。 Looking forward to reading more from you.期待你讀更多。

    Aaron Wakling阿倫Wakling

    Reply To This Comment回复此評論

  2. I've had to cut smartyhost loose too Paul, too much down time, no after hours support, all round poor service.我不得不削減smartyhost保羅太鬆散,太多的停機時間,沒有下班後的支持,全面服務差。

    Reply To This Comment回复此評論

  3. Ahhhh, before I make any changes on my blog, I have to get this issue of corrupt backup files fixed. Ahhhh,在我進行任何更改我的博客上,我要得到這個問題的腐敗備份文件修復。 The host is working on it, but I'm kinda worried…主機是工作,但我有點兒擔心...

    Reply To This Comment回复此評論

  4. wow Mariam, that is really scary… maybe its something messed up with wordpress, did you try to re-copy wordpress over itself?哇馬里安,這實在是可怕的...也許事情搞砸了與WordPress的,你嘗試重新複製的WordPress了自己?

    Reply To This Comment回复此評論

  5. Most likely as the file size ballooned twice the amount and I just checked all my backups and it seems it had happened over the summer.最有可能作為文件大小猛增兩倍的金額,我只是檢查所有的備份,它似乎是發生了今年夏天。 Bummer.無賴。 Luckily, I do keep a text copy of all my posts so if anything happens, I can recover… not the comments though unless I want to take a look at the db and query it to extract all the comments.幸運的是,我保持文本,我的所有職位,如果有什麼情況,我可以恢復...不評論,但除非我想看看的分貝和查詢到提取所有的意見。

    Reply To This Comment回复此評論

  6. So that's why your site's down sometimes when i come visit.所以,這就是為什麼你的網站的下降有時候,我來訪問。 Downtimes make me cranky too.停機時間讓我胡思亂想了。 My host promises 99.5% uptime so when it bogs down I write really long emails to them.我的主人承諾99.5%的正常運行,使沼澤地時,我寫了很長的電子郵件給他們。

    Reply To This Comment回复此評論

  7. mariam, you can export all posts and comments from std wordpress functionality.馬里安,您可以導出所有的文章和評論來自std WordPress的功能。 go to php admin and do a DB repair, you should be good to go.到PHP的管理,做好數據庫修復,你應該去好。 sing out if you need a hand唱出如果你需要一個手

    Reply To This Comment回复此評論

  8. Here is a tip for you, remove that image next to the adsense code.這裡是一個提示你,刪除該圖片旁邊的AdSense代碼。
    Be careful not to get banned, cheers !請注意,不要讓被禁止,歡呼聲!

    Reply To This Comment回复此評論

  9. Thanks Music lover, I did check the T&C's and the image has to be related to the ads to be against the rules.由於音樂愛好者,我也檢查了T&C的和形象可能與該廣告是違反規則。 The image is a picture of my name in Japanese, not related to anything i have seen advertised in the code block.該圖像是一個圖片我的名字在日本,不涉及任何我所看到的廣告在代碼塊。

    Reply To This Comment回复此評論

  10. Я могу проконсультировать Вас по этому вопросу. ЯмогупроконсультироватьВаспоэтомувопросу。 Вместе мы сможем прийти к правильному ответу. Вместемысможемприйтикправильномуответу。
    Могу предложить Вам посетить сайт, на котором есть много информации на интересующую Вас тему. МогупредложитьВампосетитьсайт,накотороместьмногоинформациинаинтересующуюВастему。 Саморазвитие и Дао пути СаморазвитиеиДаопути

    Reply To This Comment回复此評論

Incoming Links接踵而來的鏈接

    Leave a Reply留下回复