IcuCollation: Add the current class name to 'first-letters' cache key
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 15 Dec 2016 14:17:56 +0000 (15:17 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 15 Dec 2016 14:17:56 +0000 (15:17 +0100)
Instances of subclasses of IcuCollation with customizations for
specific languages probably shouldn't share this cache with instances
of IcuCollation with the same language.

Change-Id: I06d66d199c99448a3375381baef0366c4d99c8c4

includes/collation/IcuCollation.php

index 7b4fce6..bc5a209 100644 (file)
@@ -330,6 +330,7 @@ class IcuCollation extends Collation {
                        $cache = ObjectCache::getLocalServerInstance( CACHE_ANYTHING );
                        $cacheKey = $cache->makeKey(
                                'first-letters',
+                               get_class( $this ),
                                $this->locale,
                                $this->digitTransformLanguage->getCode(),
                                self::getICUVersion(),