objectcache: fix WRITE_ALLOW_SEGMENTS in BagOStuff cas() and add() methods
[lhc/web/wiklou.git] / includes / libs / objectcache / APCUBagOStuff.php
index 021cdf7..80383d1 100644 (file)
@@ -71,7 +71,7 @@ class APCUBagOStuff extends MediumSpecificBagOStuff {
                );
        }
 
-       public function add( $key, $value, $exptime = 0, $flags = 0 ) {
+       protected function doAdd( $key, $value, $exptime = 0, $flags = 0 ) {
                return apcu_add(
                        $key . self::KEY_SUFFIX,
                        $this->nativeSerialize ? $value : $this->serialize( $value ),