Make WordPress Core

Ticket #31491: 31491-memcached.patch

File 31491-memcached.patch, 503 bytes (added by ocean90, 8 years ago)
  • trunk/object-cache.php

     
    198198                        return true;
    199199
    200200                $ret = true;
    201                 foreach ( array_keys($this->mc) as $group )
    202                         $ret &= $this->mc[$group]->flush();
     201                foreach ( array_keys( $this->mc ) as $group ) {
     202                        $ret &= $this->mc[ $group ]->flush();
     203                }
     204
     205                if ( $ret ) {
     206                        $this->cache = array();
     207                }
     208
    203209                return $ret;
    204210        }
    205211