Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions classes/cache_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,17 @@ private function generate_store_instance_config(array $stores): array {

// Create instance from this definition and confirm it instantiates correctly.
$classinstance = new $classname($storearr['name'], $storearr['configuration']);
if (!$classinstance->is_ready()) {
$isready = $classinstance->is_ready();
if (PHPUNIT_TEST && $storearr['name'] == 'apcutest') {
$isready = false;
}
if ($isready) {
$storesarr[$name] = $storearr;
} else {
// Store the errored store here. Later we will check if it can be safely removed from the array,
// If its mappings are exclusively localisable.
$this->storeerrors[] = $name;
}
$storesarr[$name] = $storearr;
}

// Now instantiate the default stores (Must always exist).
Expand Down
Loading