Host Unlimited Web Sites for Only $10 per Month! 東道國無限的網站只有10元,每月!
Powered by MaxBlogPress 由maxblogpress

在WordPress哈克# 13 :交通校對的WordPress | jtpratt的博客失誤
jtpratt的博客失誤


Home » Wordpress Hack #13: Traffic Proofing Wordpress WordPress所哈克# 13 :交通校對的WordPress



Posted in: 張貼在:

博客安裝類的形象在WordPress類的形象在WordPress -插件類的形象
447 views 447的意見


Please note: This page was originally written in English.請注意:此頁中,原本以英文書寫。

The original post can be viewed原來的文章可以看 here這裡 .

Please note: This page was originally written in English.

The text has been translated using an online service such as Google or Babelfish.

The original post can be viewed here.


Wordpress errors a problem? 在WordPress錯誤的問題? Too high of a load for your web host? 過高的負載為您的Web主機? Worried about getting dugg, stumbled, or slashdotted? 擔心越來越dugg ,偶然,或slashdotted ? Learn now to “traffic proof” your Wordpress site or blog! 了解現在的“交通證明: ”你的WordPress的網站或博客!

This is installment #13 in這是分期付款,在# 13 30 Wordpress Hacks in 30 Days 30日在WordPress駭客在30天內 !

If you’ve blogging for any length of time, or if you own multiple blogs at one time or another you’re likely to have a problem with “too much traffic”.如果您的博客任何的時間長度,或如果你擁有多個blog在同一時間或其他您可能有一個問題, “太多的交通” 。 In this hacks series I’ve shown you how to keep your database maintained, but that doesn’t really matter if your starting to get 20,000 unique views per day or more.在這駭客系列我已經表明,您如何保持您的數據庫保持,但這並不真的此事如果您開始得到20000獨特的看法,每天或以上。 I’ve found over the that’s about the tipping point for most shared web hosts, the point at which your site reaches more than 250,000 “requests” per day or more and it starts maxing out the resources alloted to your domain.我發現過去認為的關於小費點最共享網站主機,該點即您的網站達到25.0萬以上“的要求, ”每天或以上,並開始maxing出來的資源分配到您的網域。 Every single time someone visits your Wordpress site, it makes “calls” to the database server to retrieve the posts, and the pages, and the categories, and header, and the footer, and your archives, and on and on and on.每一個單一的時間有人訪問您的WordPress網站,它使“召喚”到數據庫服務器,以檢索的職位,和頁面,和類別,標題,頁腳,和您的檔案,以及和對和對。 Get the picture?得到圖片? One page load could mean a dozen+ “calls” to the database. 1網頁加載可能意味著十+ “召喚”到數據庫。 That’s why 20,000 “page views” could mean “250,000 requests” for your site.這就是為什麼20000 “頁的意見, ”可能意味著“ 250000請”為您的網站。

I actually got an email today after dinner about one of my sites having “very high loads” on the server, and that today requests were way over 300,000 and it was the highest traffic day in a very long time with 22,000+ pageviews.其實,我得到一個電子郵件今天晚飯後約一個我的網站有“非常高負荷”在服務器上,和今天的請求方式,超過30.0萬,這是最高的交通日在一個很長的時間,與22000 +瀏覽量。 I knew it was time to enable some sort of caching on this site.我知道這是時間,讓某種形式的緩存關於這個站點。 The WP-Cache plugin has been around awhile (4-5 years), and I’ve used it before, but the main problem I’ve always had is you have to disable everything on your site that is either interactive or counts.該可濕性粉劑緩存插件已經一段時間( 4-5年) ,和我已經用它之前,但主要的問題,我總是已是你必須停用一切都在您的網站上,就是要么互動或計數。 This would include wp-postview (page and post counts), wp-postrating (live post ratings), etc. Even comments are a slight issue, since once they are approved it can be up to an hour before they appear on the cached pages.這將包括可濕性粉劑- postview (頁後計數) ,可濕性粉劑- postrating (活後收視率)等的意見,甚至是一種輕微的問題,因為一旦被批准,最多可以有一小時,然後才會出現在緩存的頁面。 “Normally” all javascript things, like adsense ads or affiliate ads work just fine, since they are called live on the cached pages the same as if they came from the Wordpress database. “通常”所有JavaScript的東西一樣, AdSense廣告或聯屬廣告的工作,只是罰款,因為他們是所謂的現場直播緩存的頁面一樣,如果他們來自的WordPress數據庫。

WP-Cache hasn’t been updated in a few years from what I saw on their web site, but that’s ok because “可濕性粉劑緩存尚未更新,在未來幾年,從我所看到的就在他們的網站,但的確定,因為“ WP-Super Cache可濕性粉劑-超高速緩存 ” has come along. “前來。 It’s bigger and better than WP-Cache because the PHP engine is never called and it’s much quicker.它的更大,更好,比可濕性粉劑緩存,因為PHP引擎,絕不是所謂的和它的快得多。 Now, for those of you new to Wordpress that might not be so technical - what is a “cache?” A cache is when you have common pages stored so they don’t have to be fetched from a database every time if nothing has been updated.現在,對於那些你新的WordPress可能不會那麼技術-什麼是“緩存” ?緩存是當你有共同的頁面儲存,使他們沒有被牽強,從一個數據庫,每一次如果沒有已更新。 Your web brower has a “cache” and it uses the copy of web pages on your PC if nothing has changed on the web version.您的網頁瀏覽器有一個“緩存”和它使用複製的網頁在您的PC上,如果沒有改變對網絡版。 The Wordpress wp-super-cache plugin speeds up pages on your blog in the same way.該WordPress所可濕性粉劑-超高速緩存插件加快網頁上您的博客在相同的方式。

I happenned along a post a few weeks back on OminNoggin - “ i happenned沿後數星期就回到ominnoggin -“ Make Popularity Contest Work with WP Super Cache令人氣競賽工作與可濕性粉劑超高速緩存 “. “ 。 I thought this as really cool, because he solved the problem by making the counters and statistics work using javascript instead of PHP.我以為這是真的很酷,因為他解決了這個問題,使櫃檯和統計工作使用JavaScript而不是PHP的。 I asked him in the comments if he could do the same to make Lester Chan’s我問他在評論中,如果他可以做同樣的,使萊斯特成龍的 WP-Postviews work on Javascript counts as all and he did可濕性粉劑- postviews工作JavaScript的計數作為所有和他 ! Note - his fix only works on Wordpress 2.5, so first I deactivated the WP-PostViews plugin, and then I upgraded to Wordpress 2.5.注意-他的修補程序只適用於在W ordPress2 .5,所以我首先停用該可濕性粉劑- p ostviews插件,然後我升級到了在W ordPress2 .5。 The I installed WP-Super Cache, and last I upgraded to the JavaScript version of WP-PostViews - and everything seemed to work fine!在我安裝可濕性粉劑-超高速緩存,和上次我升級到該版本JavaScript的可濕性粉劑- postviews -一切似乎工作罰款!

Let me say, “Your Mileage May Vary”!讓我說, “你的飛行哩數,可能會有所不同” ! The site I upgraded (that is now working fine with WP-Supercache AND JavaScript WP-PostViews) only has about a dozen Wordpress plugins.該網站我升級(即現在的工作的優良與可濕性粉劑- supercache和JavaScript可濕性粉劑- postviews )不僅具有大約12名wordpress插件。 Everything seems to co-exist there just fine so far and the pages load much, much faster.一切似乎合作的存在只是罰款到目前為止,和頁面加載得多,快得多。 I attempted to do the same install tonight here on jtpratt.com and it didn’t go so well.我試圖做同樣的安裝今晚在這裡jtpratt.com ,並沒有到這麼好。 I did receive some 500 errors, and the homepage didn’t seem to get any post counts for the updated JavaScript WP-PostViews.我曾收到約500錯誤,並且網頁似乎沒有得到任何職位計數為更新的JavaScript可濕性粉劑- postviews 。 This blog is quite the exception since I use almst 4 dozen plugins, and quite a few of them are interactive - like SezWho, which enhances my comments.此博客是很例外,因為我使用almst四十插件,也有不少他們的互動-像s ezwho,這提高了我的意見。 I disabled WP-Super-Cache here and backed out all the changes it made (to my .htaccess file) and deleted all it’s cached pages and deleted the plugin. i殘疾人可濕性粉劑-超高速緩存在這裡和後盾,所有的變化作出的(我的。 htaccess的檔案)和刪除所有它的緩存的網頁,並刪除了插件。 I even had to click “update” on my “Options -> Permalinks” page to get the site to act normally again.我什至要點擊“更新”就我“選項-> ”永久“頁中得到網站的行為,通常一次。 I think most “normal” sites (that don’t have all the crazy hacks I have here) will do just fine traffic proofing with WP-Super-Cache.我認為最“正常”的網站(即不具備所有瘋狂的竅門,我在這裡)將這樣做罰款的交通校對與可濕性粉劑-超高速緩存。 If you use Popularity Contest or WP-PostViews use the updated plugins I linked to.如果您使用的普及,競賽或可濕性粉劑- postviews使用更新的插件i聯繫在一起。 If you have other problems with WP-Super-Cache and a plugin -如果您有其他問題,與可濕性粉劑-超高速緩存和插件- maybe Thaya Kareeson也許thaya kareeson would be kind enough to help with this as well.將一種足夠的幫助,這也是。

As always - if you have problems, questions, or something to add - please comment now!一如往常-如果您有問題,問題,或一些補充-請評論!


Tags:標籤:

One Response to “Wordpress Hack #13: Traffic Proofing Wordpress” 1回應“的WordPress哈克# 13 :交通校對的WordPress ”

  1. Thaya Kareeson thaya kareeson Has the following to say...有下列說...

    Please feel free to let me know if you do have problems with your plugins while WP-Super-Cache is enabled. ,請隨時讓我知道,如果您有問題,與您的外掛程式,而可濕性粉劑-超高速緩存是啟用的。 I’ll see what I can do to make a mod to it and submit it to the original developers.我會看看有什麼我可以做作出按付款當日價格計算,以它和它提交給原開發商。

    Thaya Kareesons last blog post.. thaya kareesons最後的博客帖子.. Creating a Staging WordPress Blog for Testing創造一個分期WordPress所博客測試

Question or Comment??問題或意見嗎? Spill it Now...溢漏,現在...

跳躍的喜悅,為超過評論!

We Reward Comments!我們懸賞的評論!


We dofollow links, and get your latest blog post as a byline under every new comment from the "CommentLuv" plugin!我們dofollow聯繫,並獲得最新的博客帖子作為一個署名下,每一個新的評論從“ commentluv ”插件! Top commenters for every month are listed on every page of this site in a sidebar widget linked back to your URL!頂端提意見,每一個月中列出的每一頁上這個網站,在工具欄的小裝置相連回到您的網址! We would like to reward you for becoming part of our community!我們想獎勵你的一部分,成為我們的社會! Your comment is valuable not only to us, but also all the other readers of this blog!您的評論是有價值的,不僅給我們,而且所有其他的讀者,這博客!


Click to add smilies to your post! 按一下以新增的笑臉到您的帖子! == [ ]^ = (= ( (= ( |= )規例= | 8= 0= ) 〜= 00= (= ; ;= ) ]= ; ; ;