Enable Gzip Compress on Wordpress with WP-Cache 2.x Attiva Gzip compressa su Wordpress con WP-Cache 2.x
WP-Cache is a page caching system plugin for WP-Cache è un sistema di caching delle pagine plugin per Wordpress blog that cache Wordpress pages during the first load or after a page expired, and store each Wordpress page in a static HTML file which in turn used to serve future requests. blog Wordpress che la cache delle pagine durante la carica per la prima volta o dopo una pagina scaduta, e memorizzare ogni Wordpress pagina statica in un file HTML che a sua volta utilizzato per servire le richieste successive. This process of web server serving the HTML pages directly from the file rather than building the page again by loading and compiling the whole PHP code, and retrieving the necessary data from the database where there is any page request significantly reduces the resource needed to run a responsive and fast website. Questo processo di server web che serve le pagine HTML direttamente dal file piuttosto che la costruzione della pagina di nuovo da carico e la compilazione di tutto il codice PHP, e il recupero dei dati necessari dal database in cui non vi è alcuna richiesta di pagina riduce significativamente le risorse necessarie per eseguire un reattiva e veloce sito web. Meanwhile, Gzip compression is an option provided by Wordpress that allows web server to serve the articles in compressed format if request by supported web browser, reducing bandwidth used and improving performance. Nel frattempo, la compressione del gzip è una facoltà prevista da Wordpress che permette di server web per servire gli articoli in formato compresso, se richiesta, sostenuta dal browser web, riducendo la larghezza di banda utilizzata e il miglioramento delle prestazioni.
If you install WP-Cache version 2.0 or 2.1, you will be requested to turn off or disable Gzip compression in Options -> Reading tab. Se si installa WP-Cache versione 2.0 o 2.1, vi verrà chiesto di disattivare o disattivare la compressione del gzip in Opzioni -> scheda di lettura. Although WP-Cache2 is fast enough, however, you can still try to enable the Gzip compression to further speed up the web server, improve the overall performance of network and website, and save the network bandwidth, by using the following trick. Sebbene WP-Cache2 è abbastanza veloce, tuttavia, si può comunque provare a consentire la compressione del gzip per accelerare ulteriormente il server web, a migliorare il rendimento globale della rete e sito web, e salvare la larghezza di banda della rete, utilizzando il seguente trucco. The hack allows Gzip compression to be used with WP-Cache system, by making WP-Cache compress the page articles, instead of Wordpress. L'hack consente la compressione del gzip per essere usato con WP-Cache sistema, rendendo WP-Cache comprimere la pagina articoli, invece di Wordpress.
To turn on Gzip compression of web page while using WP-Cache 2, simply edit the wp-cache-phase1.php which is located in the WP-Cache plug-in folder inside the Plugins directory with text editor such as vi: Per attivare la compressione del gzip della pagina web durante l'utilizzo di WP-Cache 2, è sufficiente modificare il wp-cache-phase1.php che si trova nel WP-Cache plug-in all'interno della cartella Plugins directory con editor di testo come vi:
Add the following line: Aggiungi la riga seguente:
if ( extension_loaded(’zlib’) ) ob_start(’ob_gzhandler’); if (extension_loaded ( 'zlib')) ob_start ( 'ob_gzhandler');
Before this line: Prima di questa linea:
foreach ($meta-»headers as $header) { foreach ($ meta-»intestazioni come $ header) (
Note that you still should not turn on or enable the Gzip compress article in Wordpress. Si noti che si deve ancora non si accende o attivare la compressione Gzip articolo in Wordpress. If you do so, WP-Cache will not work. Se lo fate, WP-Cache non funziona.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Questa è una macchina tradotto pagina che è fornito "così come sono" senza garanzia. Machine translation may be difficult to understand. La traduzione automatica può essere difficile da capire. Please refer to Si prega di fare riferimento a original English article articolo originale in inglese whenever possible. ogniqualvolta ciò sia possibile.
Share and contribute or get technical support and help at Condividere e contribuire o ottenere supporto tecnico e contribuire a My Digital Life Forums La mia vita digitale forum .
Related Articles Articoli correlati
- Unzip or Decompress or Uncompress Gzip (.gz or .gzip) Files in Windows Decomprimere o Decomprimere o Decomprimi gzip (. Gz o. Gzip) file in Windows
- Run WordPress at Top Fast Speed by Putting Objects and Variables into XCache or eAccelerator Cache Memory (Plugin) Esegui WordPress in alto a Fast Speed da Mettere Oggetti e variabili in XCache o eAccelerator Cache Memoria (Plugin)
- Download WordPress 2.3 Release Candidate 1 (RC1) with Tags Support Download WordPress 2.3 Release Candidate 1 (RC1) con supporto Tag
- Download Previous or Old Version of WordPress Scarica precedente o vecchia versione di WordPress
- WordPress WYSIWYG Visual Editor Not Working or Not Appearing WordPress Visual editor WYSIWYG non funziona o non compare
- WordPress 2.1.1 Critical Security Alert - Download Upgrade to 2.1.2 WordPress 2.1.1 Critica Avviso di protezione - Scarica aggiornamento a 2.1.2
- Hide or Disable Snap Preview Anywhere (SPA Site Preview) Bubble Pop Up Nascondere o disattivare Snap Preview Anywhere (SPA sito anteprima) Bubble Pop Up
- Integrate WordPress including Comments with bbPress Forum using bbSync Integrare WordPress compresi Commenti con bbPress Forum utilizzando bbSync
- How to Change the Frequency or Interval WordPress Auto Saves An Editing Post or Page Come cambiare la frequenza o intervallo di WordPress auto salva la modifica di un post o pagina
- Disable WordPress 2.3 Core and Plugins Update Check and Notification Disattiva WordPress 2.3 Core e plugins di verifica degli aggiornamenti e notifica

































September 20th, 2008 08:32 20 settembre 2008 08:32
Thanks this code edit really increased my page load time Grazie modificare questo codice veramente aumentato il mio tempo di caricamento pagina