Make CacheHandler::getCacheName() less expensive
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 2 Mar 2022 15:24:59 +0000 (16:24 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 2 Mar 2022 16:06:54 +0000 (17:06 +0100)
commit74efd48f6fd55577246386802ad86490179cea8d
treeaf81f048d21cb8ae2d6a24e95dc5a6a24117f5e0
parent503fd20068376a0f0857fe6ed3d186dace330751
Make CacheHandler::getCacheName() less expensive

The old implementation generated cache filenames that are a little cleaner to
the human eye, but the generation was needlessly expensive, even calling the
UTF-8-safe StringUtil::firstCharToUpperCase() on an ASCII value.

It will need to be checked if the changing cache name will cause issues during
the upgrade to 5.5, as it will implicitly result in a cache clear.
wcfsetup/install/files/lib/system/cache/CacheHandler.class.php