From 11152cd1a4eb1bdf935ff66b07e510258f23a4fe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mathias=20Maa=C3=9F?= <mathias.maass@uni-leipzig.de>
Date: Wed, 19 Oct 2022 10:54:40 +0200
Subject: [PATCH] refs #22503 [finc] Delete data from the PAIA cache after a
 successful 'place hold'

---
 module/finc/src/finc/ILS/Driver/PAIA.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/module/finc/src/finc/ILS/Driver/PAIA.php b/module/finc/src/finc/ILS/Driver/PAIA.php
index 1a5c0d77e6d..39aca6e9c61 100644
--- a/module/finc/src/finc/ILS/Driver/PAIA.php
+++ b/module/finc/src/finc/ILS/Driver/PAIA.php
@@ -586,6 +586,10 @@ class PAIA extends \VuFind\ILS\Driver\PAIA
                     if ($this->daiaCacheEnabled) {
                         $this->removeCachedData($holdDetails['doc_id']);
                     }
+
+                    if ($this->paiaCacheEnabled) {
+                        $this->removeCachedData($patron['cat_username']);
+                    }
                 }
             }
         }
-- 
GitLab