From 0394cb757a507b0985175625011717bb8df31ccf Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 26 Apr 2019 21:40:53 -0700 Subject: [PATCH] objectcache: micro-optimize determineKeyClassForStats() by using the limit option to explode() Change-Id: I7d95998487dd18078599b16201c9d0ec0debcb0b --- includes/libs/objectcache/WANObjectCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/libs/objectcache/WANObjectCache.php b/includes/libs/objectcache/WANObjectCache.php index 8f0b5398fa..dac3421786 100644 --- a/includes/libs/objectcache/WANObjectCache.php +++ b/includes/libs/objectcache/WANObjectCache.php @@ -2325,7 +2325,7 @@ class WANObjectCache implements IExpiringStore, LoggerAwareInterface { * @return string A collection name to describe this class of key */ protected function determineKeyClassForStats( $key ) { - $parts = explode( ':', $key ); + $parts = explode( ':', $key, 3 ); return $parts[1] ?? $parts[0]; // sanity } -- 2.20.1