From d00e28a996cf2d02a1e128340468014acbbdce9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Lahmann?= <lahmann@ub.uni-leipzig.de> Date: Wed, 14 Sep 2016 09:49:15 +0200 Subject: [PATCH] * fixed PAIA caching when caching is disabled --- module/finc/src/finc/ILS/Driver/FincILS.php | 4 +++- module/finc/src/finc/ILS/Driver/PAIA.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/module/finc/src/finc/ILS/Driver/FincILS.php b/module/finc/src/finc/ILS/Driver/FincILS.php index 6226f8facf6..65b6eab7e5d 100644 --- a/module/finc/src/finc/ILS/Driver/FincILS.php +++ b/module/finc/src/finc/ILS/Driver/FincILS.php @@ -537,7 +537,9 @@ class FincILS extends PAIA implements LoggerAwareInterface $itemsResponse = $this->paiaGetAsArray( 'core/'.$patron['cat_username'].'/items' ); - $this->putCachedData($patron['cat_username'] . '_items', $itemsResponse); + if ($this->paiaCacheEnabled) { + $this->putCachedData($patron['cat_username'] . '_items', $itemsResponse); + } } if (isset($itemsResponse['doc'])) { diff --git a/module/finc/src/finc/ILS/Driver/PAIA.php b/module/finc/src/finc/ILS/Driver/PAIA.php index 64114a37ceb..d5bc66a3422 100644 --- a/module/finc/src/finc/ILS/Driver/PAIA.php +++ b/module/finc/src/finc/ILS/Driver/PAIA.php @@ -948,7 +948,9 @@ class PAIA extends DAIA $itemsResponse = $this->paiaGetAsArray( 'core/'.$patron['cat_username'].'/items' ); - $this->putCachedData($patron['cat_username'] . '_items', $itemsResponse); + if ($this->paiaCacheEnabled) { + $this->putCachedData($patron['cat_username'] . '_items', $itemsResponse); + } } if (isset($itemsResponse['doc'])) { -- GitLab