Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / memcache / src / DrupalMemcacheBase.php
index f455428645a32178523f259260d89d13416ef4ef..7c2bf39cd9c6aed0013066cd872806300d7f1761 100644 (file)
@@ -61,18 +61,7 @@ abstract class DrupalMemcacheBase implements DrupalMemcacheInterface {
    */
   public function get($key) {
     $full_key = $this->key($key);
-
-    $track_errors = ini_set('track_errors', '1');
-    $php_errormsg = '';
-    $result = @$this->memcache->get($full_key);
-
-    if (!empty($php_errormsg)) {
-      register_shutdown_function('memcache_log_warning', LogLevel::WARNING, 'Exception caught in DrupalMemcacheBase::get: !msg', array('!msg' => $php_errormsg));
-      $php_errormsg = '';
-    }
-    ini_set('track_errors', $track_errors);
-
-    return $result;
+    return $this->memcache->get($full_key);
   }
 
   /**