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
Neue Stellenangebote
Projektbetreuer – Social Media / Datenerfassung / Recherche / Kundenservice (m/w/d) deecoob GmbH in Dresden |
||
Social Media / Media Manager (m/w/d) Kreiskliniken Reutlingen gGmbH in Reutlingen |
||
Marketing Manager – Social Media / SEO / Grafikdesign / CMS (m/w/d) reputatio AG in Pforzheim |
||
Social Media Content Creator:in (w/m/d) Arthrex GmbH in München |
||
Social Media Manager (m/w/d) Cannamedical Pharma GmbH in Köln |
||
Referent Marketing Social Media (m/w/d) DEKRA Automobil GmbH in 70565 Stuttgart |