/** * Get an Access object based on the default pool. If it isn't set, create it. * If no definition exists for default, use Stash default (Ephimeral.) * * @param string $originalName originally requested pool configuration name * * @return Access object */ protected function getDefaultPool($originalName) { $this->xoops->events()->triggerEvent('debug.log', 'Substituting default cache pool for ' . $originalName); $name = 'default'; if (array_key_exists($name, $this->pools)) { return $this->pools[$name]; } $pool = $this->startPoolAccess($name); if ($pool === false) { $this->xoops->logger()->error('Could not create default cache pool'); $pool = new Access(new \Stash\Pool()); } $this->pools[$name] = $pool; return $pool; }