WordPress 1.5 Speedup

Robert Basic

Tipp von Nico:

Unser Zins-Tipp

Eröffne jetzt dein kostenloses Myntro Festgeld und erhalte 3,43 Prozent Zinsen auf dein Geld – und das garantiert für 12 Monate!


Jetzt Zinsen sichern

Anzeige

As anyone who uses foreign language support in WordPress 1.5 may have noticed, switching to language to something other than english slows down WordPress. On my server, no request was finished in under 2 seconds.

So I had a look at the „gettext.php“ and optimized it a little bit (pushes request time down to 0.1 secs again), and Danilo Segan (the author and maintainer of php-gettext) made a new release with these changes:

https://savannah.nongnu.org/projects/php-gettext/

1. Download the package
2. Replace gettext.php and streams.php (in wp-includes)

Additionally you can replace
$input = new FileReader($mofile)
in function load_textdomain (wp-l10n.php) with
$input = new CachedFileReader($mofile)
which also saves a few microseconds.

via Hugos House of Weblog Horror

Google lässt dich jetzt selbst bestimmen, welche Quellen du in der Suche häufiger siehst. Mit zwei schnellen Klicks kannst du BASIC thinking kostenlos als bevorzugte Quelle hinzufügen und damit unabhängigen Tech-Journalismus unterstützen. Vielen Dank!

STELLENANZEIGEN
SEO Digital Marketing Consultant (Mensch)
Instaffo GmbH in Berlin
Praktikum im Bereich Digital Analytics & ...
Liebherr-Hausgeräte Ochsenhausen GmbH in Ulm
Junior Project Manager – Internal Commu...
Voith GmbH & Co. KGaA in Heidenheim
Social Media Managerin / Social Media Manager...
Karlsruher Institut für Technolog... in Eggenstein-L...
(Senior) Paid Social Marketing Manager (m/w/d)
Instaffo GmbH in München
Pflichtpraktikum Creator Content & Partne...
EDEKA ZENTRALE Stiftung & Co. KG in Hamburg
Senior Social Media Manager (w/m/d) AI-first
IONOS in Berlin
Medieninformatiker / Medienpädagoge / Informa...
Landesamt für Digitalisierung, Breit... in Lohr am Main
Teile diesen Artikel
Folgen
Robert Basic ist Namensgeber und Gründer von BASIC thinking und hat die Seite 2009 abgegeben. Von 2004 bis 2009 hat er über 12.000 Artikel hier veröffentlicht.