From 15dfc4879ec8f8273bdec711597e118bd938653c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 26 Jul 2010 13:29:29 +0200 Subject: [PATCH] Drop collation description cache. It really does not improve performance much and it just consumes memory. Anyway on most pages this function is called just once for each collation, so all it does is filling up the cache but never using it. --- libraries/mysql_charsets.lib.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libraries/mysql_charsets.lib.php b/libraries/mysql_charsets.lib.php index 303c63770..db31ece2c 100644 --- a/libraries/mysql_charsets.lib.php +++ b/libraries/mysql_charsets.lib.php @@ -198,14 +198,6 @@ function PMA_getServerCollation() { * @return string collation description */ function PMA_getCollationDescr($collation) { - static $collation_cache; - - if (!is_array($collation_cache)) { - $collation_cache = array(); - } elseif (isset($collation_cache[$collation])) { - return $collation_cache[$collation]; - } - if ($collation == 'binary') { return __('Binary'); }