Skip to content

Commit

Permalink
[BUGFIX] Use $forceReload parameter in getInstance (#989)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Meyer <[email protected]>
  • Loading branch information
beatrycze-volk and sebastian-meyer authored Jul 21, 2023
1 parent c4a6fd0 commit 43ce528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Common/Doc.php
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ public static function &getInstance($location, $settings = [], $forceReload = fa
$xml = null;
$iiif = null;

if ($instance = self::getDocCache($location)) {
if ($instance = self::getDocCache($location) && !$forceReload) {
return $instance;
} else {
$instance = null;
Expand Down

0 comments on commit 43ce528

Please sign in to comment.