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));