Enable Gzip Compress on Wordpress with WP-Cache 2.x Įjungti Gzip Compress dėl su WordPress WP-niais 2.x
WP-Cache is a page caching system plugin for WP-Cache is a page caching sistema įjungti Wordpress 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. dienoraštis podėlį WordPress puslapių per pirmąjį krovinio ar po puslapio pabaigos, ir kiekvieną saugoti WordPress puslapis statinis HTML byla, kuri savo ruožtu naudojami ateities prašymus. 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. Šis procesas serverį tarnauti HTML puslapius tiesiai iš failo, o ne kurti puslapį vėl pakrovimo ir renkant visą PHP kodas, ir išrinkti reikalingus duomenis iš duomenų bazės, kurioje yra bet kurio puslapio prašymą gerokai sumažina išteklių reikia paleisti reaguoti ir greitai svetainėje. 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. Tuo Gzip suspaudimas yra variantas pateiktas WordPress, kuri leidžia interneto serverį tarnauti straipsniai glaudinimo formatas, jei prašymą palaikė naršyklę, sumažina pralaidumą naudojamos ir darbo našumui didinti.
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. Jei įdiegėte WP-Cache 2.0 arba 2.1, Jums bus prašoma išjungti ar išjungti Gzip kompresinio Options -> Reading tab. 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. Nors WP-Cache2 yra pakankamai greitai, tačiau vis dar galite pabandyti kad Gzip kompresinio siekiant dar labiau pagreitinti žiniatinklio serverio, pagerinti bendrą efektyvumą tinklų ir interneto, ir išsaugoti tinklo pralaidumas, naudojant šiuos apgauti. The hack allows Gzip compression to be used with WP-Cache system, by making WP-Cache compress the page articles, instead of Wordpress. Į Hack leidžia Gzip kompresijos turi būti naudojamas WP-Cache sistema, priėmimo WP-Cache Compress puslapio straipsniai, o 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: Norėdami įjungti Gzip kompresinio tinklalapio naudojant WP-Cache 2, tiesiog redaguoti wp-cache-phase1.php esančio WP-Cache plug-in aplanko viduje Plugins katalogą su teksto redaktoriumi, tokių kaip vi:
Add the following line: Pridėkite šią eilutę:
if ( extension_loaded('zlib') ) ob_start('ob_gzhandler'); jei (extension_loaded ( 'zlib')) ob_start ( "ob_gzhandler ');
Before this line: Prieš šią eilutę:
foreach ($meta-»headers as $header) { foreach ($ meta »antraštes kaip $ header) (
Note that you still should not turn on or enable the Gzip compress article in Wordpress. Atkreipkite dėmesį, kad jūs vis dar neturi įjungti arba įjungti Gzip Compress straipsnį WordPress. If you do so, WP-Cache will not work. Jei tai padarysite, WP-Cache neveiks.
IMPORTANT : The page is machine translated and provided "as is" without warranty. DĖMESIO: Šis puslapis yra mašina išvertė ir pateikiama "kaip yra" be garantijų. Machine translation may be difficult to understand. Mašininio vertimo, gali būti sunku suprasti. Please refer to Remkitės original English article originalas anglų straipsnis whenever possible. jei įmanoma.
Related Articles Susiję straipsniai
- Unzip or Decompress or Uncompress Gzip (.gz or .gzip) Files in Windows Rozpakuj ar dekompresji arba Rozpakuj Gzip (. Gz arba. Gzip) Failai Windows
- Run WordPress at Top Fast Speed by Putting Objects and Variables into XCache or eAccelerator Cache Memory (Plugin) Vykdyti WordPress į viršų greitis pagal Eksploatacijos objektai ir kintamieji į xcache ar eAccelerator Cache Memory (plugin)
- Display and View FireFox Cache Files Without Browser Cache Viewer Rodyti ir rodyti FireFox talpyklos failus be naršyklės Cache Viewer
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working Paginating ar Splitas WordPress Skelbti arba su Nextpage į WordPress neveikia
- Cache Busting Definition and Explaination Cache Busting Apibrėžimas ir Explaination
- 3 Column Relaxation WordPress Theme comments-paged.php for Paged-Comments WordPress Plugin 3 skiltis Relaksacyjny WordPress temos komentarus-paged.php už Paged-Komentarai WordPress Plugin
- How to List and Show WordPress Posts That Comments and Pings Off (Not Allow) Kaip sąrašas Parodyti WordPress Įrašai Tai Komentarai ir pingi Off (Ne Leisti)
- How to Customize, Modify or Change WordPress Database Connection Error Page Kaip pritaikyti, Keisti arba Keisti WordPress prisijungti prie duomenų bazės klaida Puslapis
- How to Move the Firefox Disk Cache To Another Drive Kaip perkelti Firefox Talpyklos kitame diske
- Using PHP-MySQL Persistent Connections to Run WordPress Blog Naudojant PHP-MySQL patvariųjų Jungtys Vykdyti WordPress blog










































September 20th, 2008 08:32 Rugsėjis 20, 2008 08:32
Thanks this code edit really increased my page load time Dėkojame šį kodą taisyti tikrai padidėjo puslapio užkrovimo laikas