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
[…] = new FileReader($mofile)ï¼ä¹å?¯ä»¥èç?å 毫ç§çæ¶é´ï¼? åæå°å?ï¼ http://www.m-e-x.de/blog/index.php/archives/2005/03/01/wordpress-15-speedup/ As anyone who uses foreign language support in WordPress 1.5 may have not […]
[…] ) æ¹æ? $input = new CachedFileReader($mofile) é樣ä¹å?¯ä»¥å å¿«å¹¾ ms åå§åºè MEX Blog
çè¨ […]
ìëíë ì¤ Speedup Hack
Blogging Proì? ì?íë©´, ì í ë?ë?¼ì§ë? 못íë? ì¬ì¤ì?´ì§ë§, ì?ì´ì? ë¹í´ì ë¤ë¥¸(íêµì´ í?¬í¨) ì¸ì´ë¥¼ ì¬ì©íë ìëíë ì¤ì? ì?ë?ê° ë?리ë¤ê³ íë¤.
As anyone who uses foreign language support in WordPress …
[…] ¸ì´íì?¼ ì¬ì©ì? ëí´ìë ê³°ëì? ìëíë ì¤ 1.5 íêµì´í?ì? ì°¸ê³ .) MEX Blogì? ë°ë¥´ë©´ ì?ì´ë¡ ì¶ë ¥í ëë³´ë¤ ì¸ì´íì?¼ì? ì […]
[…] y server, no request was finished in under 2 seconds. ì?´ì? ëí Hackì?´ ëìëë?°, ì ìì?(ë? ì?¼ì?¸ì¼ë¡ ì¶ì )ì? ë¸ë¡ê·¸ì? ê°ì íì?¸í´ë³ […]