Skip to content

Commit f56e8d7

Browse files
committed
Fix YAML caching issue during tests.
1 parent 4744c89 commit f56e8d7

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

module/VuFind/src/VuFind/Config/YamlReader.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ protected function getFromPaths($defaultFile, $customFile = null, $useLocalConfi
129129
$cacheConfig['CacheConfigName_' . $this->cacheName] ?? [],
130130
);
131131
$reloadOnFileChange = $cacheOptions['reloadOnFileChange'] ?? true;
132+
if ($cacheOptions['disabled'] ?? false) {
133+
$cache = false;
134+
}
132135

133136
// Generate cache key:
134137
$cacheKey = $defaultFile .

module/VuFind/tests/integration-tests/src/VuFindTest/Mink/GetThisTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ public static function getVufindConfigArray(
169169
$config = [
170170
'config' => [
171171
'Catalog' => ['driver' => 'Demo'],
172+
'ConfigCache' => ['disabled' => true], // prevent config caching from interfering with YAML updates
172173
'Item_Status' => [
173174
'show_full_status' => $fullStatus,
174175
'multiple_locations' => $multipleLocations ?? 'msg',

0 commit comments

Comments
 (0)