diff --git a/core/lib/Drupal/Core/Cache/PhpBackend.php b/core/lib/Drupal/Core/Cache/PhpBackend.php index 2aef934..71349c0 100644 --- a/core/lib/Drupal/Core/Cache/PhpBackend.php +++ b/core/lib/Drupal/Core/Cache/PhpBackend.php @@ -31,13 +31,13 @@ class PhpBackend implements CacheBackendInterface { protected $cache = array(); /** - * Constructs a MemoryBackend object. + * Constructs a PhpBackend object. * * @param string $bin * The cache bin for which the object is created. */ public function __construct($bin) { - $this->bin = $bin; + $this->bin = 'cache_' . $bin; } /** @@ -270,13 +270,7 @@ protected function writeItem($cid, \stdClass $item) { */ protected function storage() { if (!isset($this->storage)) { - if ($this->bin != 'cache') { - $store = 'cache_' . $this->bin; - } - else { - $store = 'cache'; - } - $this->storage = PhpStorageFactory::get($store); + $this->storage = PhpStorageFactory::get($this->bin); } return $this->storage; }