diff --git a/module/VuFind/src/VuFind/ILS/Driver/AbstractBase.php b/module/VuFind/src/VuFind/ILS/Driver/AbstractBase.php
index 563afe39c4d0c94ead7b07ed19881e0d70ab556f..55ba42d5facdb253022213e4673418772242ba99 100644
--- a/module/VuFind/src/VuFind/ILS/Driver/AbstractBase.php
+++ b/module/VuFind/src/VuFind/ILS/Driver/AbstractBase.php
@@ -155,4 +155,20 @@ abstract class AbstractBase implements DriverInterface
         ];
         $this->cache->setItem($this->formatCacheKey($key), $item);
     }
+
+    /**
+     * Helper function for removing cached data.
+     *
+     * @param string $key Cache entry key
+     *
+     * @return void
+     */
+    protected function removeCachedData($key)
+    {
+        // Don't write to cache if we don't have a cache!
+        if (null === $this->cache) {
+            return;
+        }
+        $this->cache->removeItem($this->formatCacheKey($key));
+    }
 }