fix cache when delete record

This commit is contained in:
aynsix
2022-01-10 11:57:34 +03:00
parent 0a0cf315ed
commit 06ece84fda

View File

@@ -2159,7 +2159,8 @@ class record_adapter implements RecordInterface, cache_cacheableInterface
$this->app['filesystem']->remove($ftodel); $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)); $this->dispatch(RecordEvents::DELETED, new DeletedEvent($this));