diff --git a/module/finc/src/finc/ILS/Driver/FincILS.php b/module/finc/src/finc/ILS/Driver/FincILS.php index 6226f8facf6e21c1bd50440b2f25ed5414b29f68..65b6eab7e5db69d8b77616e99e9fd8aa909df2c6 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 64114a37cebd60a16ff7b0289db2141ce22bc393..d5bc66a34226b774e0ccccb7f361327b7829918c 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'])) {