Skip to content

Commit

Permalink
pkp/pkp-lib#798: Ensure cached objects are returned if available in D…
Browse files Browse the repository at this point in the history
…OIExportDom / DataciteExportDom.
  • Loading branch information
ctgraham committed Oct 6, 2015
1 parent 8949cd3 commit 66be624
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/importexport/datacite/classes/DOIExportDom.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,8 @@ function &retrieveArticlesByIssue(&$issue) {
$cache->markComplete('articlesByIssue', $issueId);
$articlesByIssue = $cache->get('articlesByIssue', $issueId);
}
} else {
$articlesByIssue = $cache->get('articlesByIssue', $issueId);
}
return $articlesByIssue;
}
Expand All @@ -361,6 +363,8 @@ function &retrieveGalleysByArticle(&$article) {
$cache->markComplete('galleysByArticle', $articleId);
$galleysByArticle = $cache->get('galleysByArticle', $articleId);
}
} else {
$galleysByArticle = $cache->get('galleysByArticle', $articleId);
}
return $galleysByArticle;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ function &_retrieveSuppFilesByArticle(&$article) {
$cache->markComplete('suppFilesByArticle', $articleId);
$suppFilesByArticle = $cache->get('suppFilesByArticle', $articleId);
}
} else {
$suppFilesByArticle = $cache->get('suppFilesByArticle', $articleId);
}
return $suppFilesByArticle;
}
Expand Down

0 comments on commit 66be624

Please sign in to comment.