From 343f94f1fe5e86aac43c1c1617990624c846d1e1 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 6 Dec 2016 01:03:21 -0500 Subject: [PATCH] objectcache: Remove broken apcu_set() calls The method call was misnamed (should be apcu_store) and not needed anyway, since the other BagOStuff classes fail if no key is present. Change-Id: I726965e665c2d0c5843d8dd33504810d130b9e98 --- includes/libs/objectcache/APCUBagOStuff.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/libs/objectcache/APCUBagOStuff.php b/includes/libs/objectcache/APCUBagOStuff.php index 02b3c928ed..6e6a3adebb 100644 --- a/includes/libs/objectcache/APCUBagOStuff.php +++ b/includes/libs/objectcache/APCUBagOStuff.php @@ -72,7 +72,7 @@ class APCUBagOStuff extends APCBagOStuff { if ( apcu_exists( $key . self::KEY_SUFFIX ) ) { return apcu_inc( $key . self::KEY_SUFFIX, $value ); } else { - return apcu_set( $key . self::KEY_SUFFIX, $value ); + return false; } } @@ -85,7 +85,7 @@ class APCUBagOStuff extends APCBagOStuff { if ( apcu_exists( $key . self::KEY_SUFFIX ) ) { return apcu_dec( $key . self::KEY_SUFFIX, $value ); } else { - return apcu_set( $key . self::KEY_SUFFIX, -$value ); + return false; } } } -- 2.20.1