WP-Cache 2 WP-Cache 2 and its younger cousin e il suo giovane cugino WP Super Cache WP super cache have become de-facto suggestion for reducing site load for WordPress blogs. sono diventate de facto suggerimento per la riduzione del carico sito per i blogs di WordPress. I used WP-Cache 2 on all my blogs. Ho usato il WP-Cache 2 su tutti i miei blog. WP Super Cache despite its potential doesn’t improve upon the performance of WP-Cache 2 and brings in some problems. WP Super Cache, nonostante il suo potenziale non migliorare le prestazioni del WP-Cache 2 e porta in alcuni problemi.

Note: In the past we did extensive tests on WP Super Cache versus WP-Cache 2 and we couldn’t find any significant performance difference in either. Nota: In passato abbiamo fatto esperimenti su vasta WP Super Cache contro WP-Cache 2 e non siamo riusciti a trovare alcuna significativa differenza di prestazioni. In fact WP-Cache 2 performed slightly better in our tests. In realtà WP-Cache 2 eseguita leggermente migliore nei nostri test. However this article isn’t about that comparison. Tuttavia, questo articolo non è su questo confronto. In the past we have seen that even with wp-cache 2 / wp super cache, we suffered significant performance problems during peak hours. In passato abbiamo visto che, anche con wp-cache 2 / wp super nascondiglio, abbiamo subito notevoli problemi di prestazioni durante le ore di punta. Neither of the plugins scale very well with high volume of simultaneous accesses despite any claims you may hear to the contrary. Nessuno dei collegamenti su scala molto bene con un elevato volume di accessi simultanei, nonostante le richieste di indennizzo si può sentire il contrario. Try, for example, a simple ab (Apache Bench) test with 500 concurrent threads and you will find that with wp-cache 2 your whole site literally hangs for extended periods. Provare, ad esempio, un semplice ab (Apache Bench) prova con 500 concorrenti fili e troverete che con wp-nascondiglio 2 l'intero sito letteralmente si blocca per lunghi periodi. You may even have to reboot your machine. È possibile anche avere a riavviare il computer. We had to do it several times during our test. Abbiamo dovuto farlo più volte nel corso della nostra prova. There are two ways around this problem. Ci sono due modi per ovviare a questo problema.

If you have deep pockets like Se si dispone di tasche profonde come WordPress.com , you can throw more machines to the mix. , È possibile lanciare più macchine alla miscela. We decided to innovate instead. Abbiamo deciso di innovare. Additionally we needed a better caching system for Inoltre avevamo bisogno di un migliore sistema di caching Translator Plugin Pro Plugin per traduttore (WordPress plugin to translate your blog to 13+1 languages) & especially (WordPress plugin per tradurre il tuo blog a 13 +1 lingue) e soprattutto Translator Plugin Gold Traduttore plug in oro (WordPress plugin to translate your blog to 32 languages). (WordPress plugin per tradurre il tuo blog a 32 lingue). Actually there is a bit of history here. Non vi è effettivamente un po 'di storia qui. Initially we used WordPress’ in-built object cache for translator plugins. Inizialmente abbiamo utilizzato WordPress' costruito in oggetto cache per traduttore collegamenti. Unfortunately object cache didn’t work too well for bloggers on shared hosting platforms. Purtroppo oggetto di cache non ha funzionato troppo bene per i blogger su piattaforme di hosting condiviso. WordPress too realized the problems and removed file based object caching in 2.5. WordPress realizzato anche i problemi e rimosso il file basato oggetto di caching in 2,5. We acted before that and replaced it with database based object cache. Abbiamo agito prima e che lo ha sostituito con banca dati basata oggetto di cache. It was a dramatic improvement but then database too has its limitations. E 'stato un sensibile miglioramento ma poi troppo banca dati ha i suoi limiti. We went through several rounds of optimization and finally we had a pretty good performance to be proud of. Siamo passati attraverso diverse fasi di ottimizzazione e, infine, abbiamo avuto un buon rendimento di cui andare fieri. We didn’t stop there. Noi non si è fermata lì.

In our effort to find a better and simpler caching solution, both for WordPress blog and for Translator plugins we invented Light Cache. Nel nostro sforzo di trovare un migliore e più semplice soluzione di memorizzazione nella cache, sia per i blog di WordPress e per i collegamenti Translator inventato noi Light Cache. Today we deployed it on this blog. Oggi abbiamo implementato su questo blog. Tomorrow we will deploy it on all other blogs. Domani ci sarà la sua distribuzione a tutti gli altri blog. What did we find out? Che cosa abbiamo trovato?

Performance, performance & performance Prestazioni, rendimento e prestazioni
Couple of hours back I tested using ab (Apache Bench) a WordPress 2.5 blog (on Pentioum 4 1.8 Ghz). Paio d'ore indietro I testato con ab (Apache Bench) un blog WordPress 2,5 (a Pentioum 4 1,8 GHz). I tried first with 100 threads fetching a page and doing 10, 000 cumulative requests from another machine. Ho provato prima con 100 fili prendendo una pagina e facendo 10, 000 cumulativo richieste da un'altra macchina. I got a performance of 13.5 milliseconds per request. Ho avuto una performance del 13,5 millisecondi per ogni richiesta. I did the similar test on the same blog using wp-cache 2 and got similar performance around 14.4 milliseconds. Ho fatto la prova analoga sullo stesso blog utilizzando il wp-cache 2 e ha ottenuto simili risultati di 14,4 millisecondi. Nothing to write home about. Niente da scrivere a casa.

Next I tried testing Light Cache with 500 threads performing 10, 000 requests. Ho provato prossimo test Light Cache con 500 thread di esecuzione di 10, 000 richieste. It came back with 13.2 milliseconds average performance. E 'tornato a 13,2 millisecondi rendimento medio. I tried the same test with wp-cache 2 and it hanged the machine. Ho provato la stessa prova con il wp-cache 2 e impiccato è la macchina. I rebooted and tried with 250 threads and again WordPress and in turn the whole machine froze. Ho riavviato e provato con 250 fili e di nuovo e di WordPress, a sua volta, l'intera macchina congelato. As I mentioned before I faced such problems with wp-cache 2 in the past. Come ho già detto prima di affrontare questi problemi con wp-nascondiglio 2 in passato. In fact I face it almost every other day with heavy site load. In realtà mi volto quasi ogni altro giorno, con pesanti sito carico. I cannot explain it away with other factors like lower number of Apache threads etc. My site is tuned in every possible way, we also use eAccelerator. Non posso spiegare via con altri fattori come il minor numero di fili di Apache, ecc Il mio sito è ottimizzato in ogni modo possibile, abbiamo anche utilizzare eAccelerator.

I found out that Light Cache maintains its performance with 500 threads as will 100 concurrent threads. Ho scoperto che la luce Cache mantiene le sue prestazioni con 500 discussioni come sarà concomitante 100 thread. While this may be good enough for many, I wasn’t fully satisfied. Se questo può essere abbastanza buono per molti, non sono stato pienamente soddisfatto. The real test of a caching plugin is with real site load. Il vero test di una cache di plugin è a carico reale sito. So I did the unthinkable. Così ho fatto l'impensabile. I tested it on our live site, on this site. Ho provato a vivere il nostro sito, su questo sito. It was early morning in USA and the site load was heavy. E 'stato prima mattina in Stati Uniti d'America e il sito è stato carico pesante. I was having 30-34% idle cpu time on average. Mi è stato aver 30-34% inattivo tempo CPU in media. I decided to run 100 concurrent threads from another server using ab to fetch big page on this site (92K). Ho deciso di eseguire i thread 100 concorrenti provenienti da un altro server utilizzando per recuperare dal grande pagina su questo sito (92k). I fully expected my site to hang. Sono pienamente previsto il mio sito da appendere. The Apache Bench finished quickly and gave me performance of 11.8 milliseconds. Apache Panchina finito rapidamente e mi ha dato esecuzione del 11,8 millisecondi. It was very surprising. E 'stato molto sorprendente. Now I upped the ante and increased the thread count to 200. Ora mi upped le ante e aumentato il thread contare fino a 200. It came back with similar performance around 12 seconds. E 'tornato con analoghe prestazioni di circa 12 secondi. The CPU idle time fluctuated a bit but not by much and the sar generated average remained almost same. La CPU il tempo di inattività oscillato un po 'ma non di molto e la RAS generato media è rimasta quasi uguale. This was the defining moment. Questo è stato il momento decisivo. I knew I had a winner. Sapevo che ha avuto un vincitore. Light Cache performed admirably in a live site with heavy load without breaking a sweat. Cache luce mirabilmente eseguita dal vivo in un sito con pesante carico di rottura senza uno sudore.

Light Cache comes with the basic functionality of wp-cache 2, setting cache time, showing stats, ability to clear cache etc. Light Cache is simple in design and does one job well, to serve lightning fast WordPress pages. Cache luce viene fornito con le funzionalità di base di wp-cache 2, impostazione della cache tempo, la visualizzazione delle statistiche, la capacità di cache chiaro ecc Light Cache è semplice nel design e non un posto di lavoro e, a servire un fulmine veloce WordPress pagine.

We may release it in near future as a separate product after some polishing and documentation. Possiamo rilasciare nel prossimo futuro come un prodotto separato dopo alcuni lucidatura e la documentazione. However it will also be bundled with Translator Plugin Pro & Translator Plugin Gold plugins. Tuttavia sarà anche fornito in bundle con Translator Pro Plugin & Translator Plugin Gold collegamenti.

Update: I just tested our live site with 300 concurrent threads with a 87K document. Aggiornamento: Ho appena testato il nostro sito vivere con 300 concorrenti fili con un 87k documento. The average time per request is 9.5 milliseconds! Il tempo medio per ogni richiesta è 9,5 millisecondi!

 Document Length:        87247 bytes  Concurrency Level:      300 Time taken for tests:   94.616595 seconds Complete requests:      10000 Failed requests:        0 Write errors:           0 Total transferred:      876999240 bytes HTML transferred:       874640545 bytes Requests per second:    105.69 [#/sec] (mean) Time per request:       2838.498 [ms] (mean) Time per request:       9.462 [ms] (mean, across all concurrent requests) Transfer rate:          9051.73 [Kbytes/sec] received  Connection Times (ms)               min  mean[+/-sd] median   max Connect:      134  358 1050.0    209   21263 Processing:   832 2452 2146.6   1987   26659 Waiting:      149 1181 2231.5    585   25878 Total:        966 2811 2383.0   2201   26794  Percentage of the requests served within a certain time (ms)   50%   2201   66%   2376   75%   2637   80%   2802   90%   3908   95%   5658   98%  10682   99%  14725  100%  26794 (longest request) Documento Lunghezza: 87247 bytes Concurrency Livello: 300 Tempo di presa per le prove: 94,616595 secondo Completa richieste: 10000 Richieste fallite: 0 Scrivere errori: 0 Totale trasferiti: 876999240 bytes trasferiti HTML: 874640545 bytes richieste al secondo: 105,69 [# / sec] (in media ) Tempo per ogni richiesta: 2838,498 [ms] (in media) Tempo per ogni richiesta: 9,462 [ms] (in media, di tutti i concorrenti richieste) Velocità di trasferimento: 9051,73 [Kbytes / sec] ricevuto Connection Times (ms) min media [+ /-sd ] Mediana max Connect: 134 358 1050 .0 209 21263 fase di elaborazione: 832 2452 2146,6 1987 26659 attesa: 149 1181 2231,5 585 25878 Totale: 966 2811 2383,0 2201 26794 Percentuale di richieste servita all'interno di un determinato periodo di tempo (ms) 50% 2201 66% 2376 75 % 2637 80% 2802 90% 3908 95% 5658 98% 10682 99% 14725 100% 26794 (più lunga richiesta)