From 06ece84fda43bd77137b13f6273d0fb5a6cd6558 Mon Sep 17 00:00:00 2001 From: aynsix Date: Mon, 10 Jan 2022 11:57:34 +0300 Subject: [PATCH] fix cache when delete record --- lib/classes/record/adapter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/classes/record/adapter.php b/lib/classes/record/adapter.php index 9dab828c1e..7b3e35a749 100644 --- a/lib/classes/record/adapter.php +++ b/lib/classes/record/adapter.php @@ -2159,7 +2159,8 @@ class record_adapter implements RecordInterface, cache_cacheableInterface $this->app['filesystem']->remove($ftodel); - $this->delete_data_from_cache(self::CACHE_SUBDEFS); + // delete the corresponding key record_id from the cache + $this->delete_data_from_cache(); $this->dispatch(RecordEvents::DELETED, new DeletedEvent($this));